2023-03-06 18:14:55 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*- #
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
PATH = 'content'
|
|
|
|
|
|
|
|
TIMEZONE = 'Canada/Mountain'
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
DEFAULT_PAGINATION = False
|
|
|
|
|
|
|
|
MARKDOWN = {
|
|
|
|
'extension_configs': {
|
|
|
|
'markdown.extensions.codehilite': {'css_class': 'highlight'},
|
|
|
|
'markdown.extensions.extra': {},
|
|
|
|
'markdown.extensions.meta': {},
|
|
|
|
'markdown.extensions.toc': {
|
|
|
|
'toc_depth': '2-3',
|
|
|
|
'anchorlink': True,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'output_format': 'html5',
|
|
|
|
}
|
|
|
|
|
|
|
|
PLUGINS = [
|
|
|
|
'obsidian',
|
|
|
|
'linkclass',
|
|
|
|
]
|
|
|
|
|
|
|
|
STATIC_PATHS = ['media', 'extra']
|
|
|
|
|
|
|
|
EXTRA_PATH_METADATA = {
|
2023-03-26 02:42:57 +00:00
|
|
|
'extra/logo.svg': {'path': 'logo.svg'},
|
2023-03-26 06:30:31 +00:00
|
|
|
'extra/favicon.svg': {'path': 'favicon.svg'},
|
2023-03-06 18:14:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Uncomment following line if you want document-relative URLs when developing
|
|
|
|
#RELATIVE_URLS = True
|
|
|
|
|
|
|
|
THEME = 'themes/theme'
|
|
|
|
|
|
|
|
# turn off useless outputs
|
|
|
|
TAG_SAVE_AS = ''
|
|
|
|
CATEGORY_SAVE_AS = ''
|
|
|
|
AUTHOR_SAVE_AS = ''
|
|
|
|
ARCHIVES_SAVE_AS = ''
|
|
|
|
AUTHORS_SAVE_AS = ''
|
|
|
|
CATEGORIES_SAVE_AS = ''
|
|
|
|
TAGS_SAVE_AS = ''
|
|
|
|
|
|
|
|
INDEX_SAVE_AS = 'index.html'
|
|
|
|
ARTICLE_URL = '{slug}/'
|
|
|
|
ARTICLE_SAVE_AS = '{slug}/index.html'
|
|
|
|
PAGE_URL = '{slug}/'
|
|
|
|
PAGE_SAVE_AS = '{slug}/index.html'
|
|
|
|
|
|
|
|
PROD = True
|