personal-site/publishconf.py

69 lines
1.4 KiB
Python
Raw Normal View History

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
2020-11-02 02:43:40 +00:00
AUTHOR = 'Tanner Collin'
SITENAME = 'Tanner Collin'
SITEURL = ''
2020-11-02 02:43:40 +00:00
PATH = 'content'
2020-11-02 02:43:40 +00:00
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
2020-11-02 02:43:40 +00:00
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',
}
2022-05-18 22:07:28 +00:00
PLUGINS = [
'obsidian',
'linkclass',
]
STATIC_PATHS = ['media', 'extra']
2021-04-27 01:14:31 +00:00
EXTRA_PATH_METADATA = {
'extra/favicon.svg': {'path': 'favicon.svg'},
}
2020-11-02 02:43:40 +00:00
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
2020-11-02 02:43:40 +00:00
THEME = 'themes/theme'
2020-11-02 03:35:54 +00:00
# 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 = ''
2021-05-30 05:08:37 +00:00
INDEX_SAVE_AS = 'index.html'
2020-11-02 03:35:54 +00:00
ARTICLE_URL = '{slug}/'
2021-05-30 05:08:37 +00:00
ARTICLE_SAVE_AS = '{slug}/index.html'
2020-11-02 03:35:54 +00:00
PAGE_URL = '{slug}/'
2021-05-30 05:08:37 +00:00
PAGE_SAVE_AS = '{slug}/index.html'
2020-11-02 03:35:54 +00:00
PROD = True