From 3b5f59eb2034b011f3a392ae7a0f421162ce7e39 Mon Sep 17 00:00:00 2001 From: "Zack M. Davis" Date: Mon, 13 Jul 2026 16:55:03 -0700 Subject: [PATCH] check in pelicanconf and publishconf --- pelicanconf.py | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ publishconf.py | 20 +++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 pelicanconf.py create mode 100644 publishconf.py diff --git a/pelicanconf.py b/pelicanconf.py new file mode 100644 index 0000000..d5e5f77 --- /dev/null +++ b/pelicanconf.py @@ -0,0 +1,66 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- # + +AUTHOR = 'Zack M. Davis' +SITENAME = 'An Algorithmic Lucidity' +SITEURL = '' + +PATH = 'content' +THEME = 'theme' + +TIMEZONE = 'America/Los_Angeles' + +DEFAULT_LANG = 'en' + +# Feed generation is usually not desired when developing +FEED_ALL_ATOM = None +CATEGORY_FEED_ATOM = None +TRANSLATION_FEED_ATOM = None +AUTHOR_FEED_ATOM = None +AUTHOR_FEED_RSS = None + +# Blogroll +LINKS = () + +# Social widget +SOCIAL = () + +DEFAULT_PAGINATION = 20 + +# URL structure - clean paths without dates in URL +FILENAME_METADATA = '(?P.*)' +ARTICLE_URL = '{date:%Y}/{date:%b}/{slug}/' +ARTICLE_SAVE_AS = '{date:%Y}/{date:%b}/{slug}/index.html' +CATEGORY_URL = 'category/{slug}/' +CATEGORY_SAVE_AS = 'category/{slug}/index.html' +TAG_URL = 'tag/{slug}/' +TAG_SAVE_AS = 'tag/{slug}/index.html' +PAGE_URL = '{slug}/' +PAGE_SAVE_AS = '{slug}/index.html' +AUTHOR_URL = 'author/{slug}/' +AUTHOR_SAVE_AS = 'author/{slug}/index.html' +ARCHIVES_URL = 'archives' +ARCHIVES_SAVE_AS = 'archives/index.html' +YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html' +MONTH_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%b}/index.html' + +PAGINATION_PATTERNS = ( + (1, '{base_name}/', '{base_name}/index.html'), + (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'), +) + +# Markdown extensions +MARKDOWN = { + 'extension_configs': { + 'markdown.extensions.codehilite': {'css_class': 'highlight'}, + 'markdown.extensions.extra': {}, + 'markdown.extensions.meta': {}, + 'markdown.extensions.toc': { + 'title': 'Table of Contents', + }, + }, + 'output_format': 'html5' +} + +# Don't use relative URLs in production - using False for proper absolute URLs +RELATIVE_URLS = False diff --git a/publishconf.py b/publishconf.py new file mode 100644 index 0000000..8ed2a08 --- /dev/null +++ b/publishconf.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- # + +# This file is only used if you use `make publish` or +# explicitly specify it as your config file. + +import os +import sys +sys.path.append(os.curdir) +from pelicanconf import * + +# If you have a custom domain, set it here +# SITEURL = 'https://yourdomain.com' + +FEED_ALL_ATOM = 'feeds/all.atom.xml' +CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml' + +DELETE_OUTPUT_DIRECTORY = True + +# Keep RELATIVE_URLS = False for production to get proper absolute URLs -- 2.53.0