2021-07-25 22:40:04 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*- #
|
|
|
|
from __future__ import unicode_literals
|
2021-10-14 06:41:18 +00:00
|
|
|
import os
|
2021-07-25 22:40:04 +00:00
|
|
|
|
|
|
|
AUTHOR = 'Tanner Collin'
|
|
|
|
SITENAME = 'Tanner Collin'
|
|
|
|
SITEURL = ''
|
|
|
|
|
|
|
|
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': {},
|
2021-07-26 18:42:50 +00:00
|
|
|
'markdown.extensions.toc': {
|
|
|
|
'toc_depth': '2-3',
|
|
|
|
'anchorlink': True,
|
|
|
|
},
|
2021-07-25 22:40:04 +00:00
|
|
|
},
|
|
|
|
'output_format': 'html5',
|
|
|
|
}
|
|
|
|
|
2022-05-19 22:32:58 +00:00
|
|
|
PLUGINS = [
|
|
|
|
'obsidian',
|
|
|
|
'linkclass',
|
|
|
|
]
|
|
|
|
|
|
|
|
STATIC_PATHS = ['media', 'extra', 'text']
|
2021-07-25 22:40:04 +00:00
|
|
|
|
|
|
|
EXTRA_PATH_METADATA = {
|
|
|
|
#'extra/favicon.svg': {'path': 'favicon.svg'},
|
|
|
|
}
|
|
|
|
|
|
|
|
# Uncomment following line if you want document-relative URLs when developing
|
|
|
|
#RELATIVE_URLS = True
|
|
|
|
|
|
|
|
THEME = 'themes/lite'
|
|
|
|
|
|
|
|
# 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'
|
2022-03-27 09:04:23 +00:00
|
|
|
ARTICLE_URL = '{short}'
|
2021-10-14 07:47:43 +00:00
|
|
|
ARTICLE_SAVE_AS = '{short}/index.html'
|
2021-10-14 06:41:18 +00:00
|
|
|
PAGE_URL = '{slug}'
|
|
|
|
PAGE_SAVE_AS = '{slug}/index.html'
|
|
|
|
|
|
|
|
def list_text_files():
|
|
|
|
return sorted(os.listdir('./content/text'))
|
|
|
|
|
|
|
|
JINJA_GLOBALS = {'list_text_files': list_text_files}
|
2021-07-25 22:40:04 +00:00
|
|
|
|
|
|
|
PROD = True
|