blog/pelicanconf.py

76 lines
1.7 KiB
Python
Raw Normal View History

2022-10-17 23:17:37 +00:00
from pathlib import Path
pwd = Path.cwd()
2022-10-17 01:59:22 +00:00
AUTHOR = 'Tyrel Souza'
2022-11-03 03:36:10 +00:00
SITENAME = "Tyrel's Blog"
2022-10-17 03:02:04 +00:00
TWITTER_USERNAME = 'tyrelsouza'
2022-10-17 23:17:37 +00:00
SITEURL = ''
2022-11-03 03:36:10 +00:00
SITESUBTITLE = 'Code, Tech, Automation'
SITEBASE = ""
2022-10-17 04:08:58 +00:00
2022-10-17 01:59:22 +00:00
MENUITEMS = [
2022-11-03 03:36:10 +00:00
('Home', f'{SITEBASE}/'),
('Tags', f'{SITEBASE}/tags.html'),
('Categories', f'{SITEBASE}/categories.html'),
2022-10-17 01:59:22 +00:00
]
2022-10-17 04:08:58 +00:00
LINKS = (
('Code', 'https://gitea.tyrel.dev/'),
('Wiki', 'https://tyrel.website/wiki/'),
('Flying Blog', 'https://k3tas.radio/airband/'),
('Photos', 'https://tyrel.website/photos'),
('LinkedIN', 'https://www.linkedin.com/in/tyrel-souza/'),
)
SOCIAL = (
('Twitter', 'https://www.twitter.com/tyrelsouza'),
('Instagram', 'https://www.instagram.com/tyrelsouza'),
('GoodReads', 'https://www.goodreads.com/user/show/24381583-tyrel-souza'),
)
2022-10-17 01:59:22 +00:00
PATH = 'content'
TIMEZONE = 'America/New_York'
DEFAULT_LANG = 'en'
# Feed generation is usually not desired when developing
2022-10-17 04:26:02 +00:00
# FEED_DOMAISITEURL
2022-10-17 01:59:22 +00:00
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
2022-11-03 03:36:10 +00:00
FEED_ATOM = 'tyrel-dev.atom.xml'
FEED_RSS = 'tyrel-dev.rss'
FEED_ALL_ATOM = 'tyrel-dev.all.xml'
FEED_ALL_RSS = 'tyrel-dev.all.rss'
2022-10-17 01:59:22 +00:00
2022-11-03 03:36:10 +00:00
PLUGINS = ["webassets"]
2022-10-17 01:59:22 +00:00
2022-11-03 03:36:10 +00:00
DEFAULT_PAGINATION = False
2022-10-17 01:59:22 +00:00
DISPLAY_CATEGORIES_ON_MENU = False
DELETE_OUTPUT_DIRECTORY = True
2022-10-17 04:08:58 +00:00
STATIC_PATHS = (
'images',
2022-10-17 04:26:02 +00:00
'extras',
2022-10-17 04:08:58 +00:00
)
ARTICLE_PATHS = ['blog', ]
2022-10-17 17:48:34 +00:00
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}.html'
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}.html'
2022-10-17 04:08:58 +00:00
2022-10-17 04:26:02 +00:00
YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html'
2022-10-17 17:48:34 +00:00
MONTH_ARCHIVE_URL = 'posts/{date:%Y}/{date:%m}/index.html'
2022-10-17 04:26:02 +00:00
2022-10-17 04:08:58 +00:00
DEFAULT_METADATA = {
'status': 'draft',
2022-10-17 04:26:02 +00:00
'extras/favicon.ico': {'path': 'favicon.ico'},
2022-10-17 04:08:58 +00:00
}
2022-10-17 23:17:37 +00:00
2022-11-03 03:36:10 +00:00
THEME = "./themes/simple"