blog/pelicanconf.py

81 lines
1.8 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 = ''
2023-05-30 16:26:23 +00:00
SITESUBTITLE = 'Code, Flying, Tech, Automation'
2023-10-16 02:24:14 +00:00
FAVICON = '/img/icon192.png'
2022-11-03 03:36:10 +00:00
2022-11-03 03:44:01 +00:00
SITEBASE = "/blog"
2022-10-17 04:08:58 +00:00
2023-09-30 04:07:38 +00:00
MENU_INTERNAL_PAGES = [
('Archive', 'archives.html', f'archives.html'),
2024-08-26 15:40:05 +00:00
#('Tags', 'tags.html', f'tags.html'),
#('Categories', 'categories.html', f'categories.html'),
2022-10-17 01:59:22 +00:00
]
2023-09-30 04:07:38 +00:00
MENUITEMS = [
2023-07-27 18:28:18 +00:00
('My Code', 'https://gitea.tyrel.dev/tyrel'),
2023-07-20 20:09:02 +00:00
('Find Me', 'https://tyrel.dev/links'),
2023-05-03 17:56:07 +00:00
('Book Me', 'https://cal.com/tyrelsouza'),
2024-07-12 15:27:20 +00:00
('Tags', '/blog/tags.html'),
('Categories', '/blog/categories.html'),
2023-09-30 04:07:38 +00:00
]
2022-10-17 04:08:58 +00:00
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_ALL_ATOM = 'tyrel-dev.all.xml'
2022-10-17 01:59:22 +00:00
2023-10-04 21:23:03 +00:00
PLUGINS = ["webassets"]
2022-10-17 01:59:22 +00:00
2023-09-26 20:21:53 +00:00
DEFAULT_PAGINATION = True
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
2023-07-20 19:34:24 +00:00
SOCIAL = ()
# THEME = "./themes/pelican-themes/gum"
2023-06-24 05:01:32 +00:00
DISPLAY_PAGES_ON_MENU=True
2023-07-20 19:34:24 +00:00
LANDING_PAGE_ABOUT=True
2023-09-26 20:21:53 +00:00
THEME = pwd / "themes" / "blue-penguin-dark"
2024-08-26 15:40:05 +00:00
#THEME = pwd / "themes" / "solarized"
2023-09-30 04:07:38 +00:00
2024-08-26 15:40:05 +00:00
PAGINATED_TEMPLATES = {'index': 10, 'tag': 10, 'category': 10, 'author': None}
2023-09-30 04:07:38 +00:00
DISPLAY_HOME = False
2024-08-26 15:40:05 +00:00
SUMMARY_MAX_LENGTH = 400