flux.vision/web/pelicanconf.py

59 lines
1.5 KiB
Python
Raw Normal View History

2023-07-01 11:01:17 +03:00
# Disable Setext Headers Monkey Patch
from markdown import blockprocessors as bp
class NoProcessing(bp.BlockProcessor):
def test(self, parent, block):
return False
bp.SetextHeaderProcessor = NoProcessing
AUTHOR = 'Tobias'
2026-05-16 11:34:31 +03:00
SITENAME = 'MOMENTUM FLUX'
2023-07-01 11:01:17 +03:00
THEME = 'mc-pelican'
PLUGIN_PATHS = ['pelican-plugins']
TIMEZONE = 'Asia/Jerusalem'
DEFAULT_LANG = 'English'
# 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
DEFAULT_PAGINATION = False
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
JS_OVERRIDE = ['theme/script.js']
MARKDOWN = {
'extension_configs': {
'markdown.extensions.tables':{},
'markdown.extensions.footnotes':{},
'markdown.extensions.nl2br':{},
}
}
ARTICLE_URL = "{category}/{slug}.html"
ARTICLE_SAVE_AS = "{category}/{slug}.html"
INDEX_SAVE_AS = "projects/all.html"
ARCHIVES_SAVE_AS = 'projects/index.html'
2023-07-01 11:01:17 +03:00
PATH = 'content'
ARTICLE_PATHS = ['blog',]
PAGE_PATHS = ['pages',]
2026-05-16 11:34:31 +03:00
MENUITEMS = [('Projects', '/projects/'), ('Articles', '/blog/'), ('Connect', '/connect.html'), ('Bio', '/pages/bio.html')]
2023-07-01 11:01:17 +03:00
SUMMARY_MAX_LENGTH = 0
DEFAULT_DATE_FORMAT = '%Y-%m-%d'
DEFAULT_CATEGORY = 'blog'
CATEGORIES_SAVE_AS = 'categories/index.html'
CATEGORY_URL = '{slug}/index.html'
CATEGORY_SAVE_AS = '{slug}/index.html'
DELETE_OUTPUT_DIRECTORY = True
PLUGINS = ['geoblog']