enable some useful markdown extensions and typography improvements

mainline
Trolli Schmittlauch 2022-03-02 03:00:44 +01:00
parent c46ef5b2bf
commit 74b6c9df5c
1 changed files with 13 additions and 0 deletions

View File

@ -19,6 +19,8 @@ ARTICLE_URL = 'blog/{slug}.html'
ARTICLE_SAVE_AS = 'blog/{slug}.html'
CUSTOM_CSS = "static/custom.css"
# enable typography pre-processing for nicer appearance
TYPOGRIFY = True
TIMEZONE = 'Europe/Berlin'
@ -64,6 +66,17 @@ DEFAULT_PAGINATION = 10
#RELATIVE_URLS = True
# Multilang
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'use_pygments': True},
'markdown.extensions.fenced_code': {},
'markdown.extensions.footnotes': {},
'markdown.extensions.tables': {},
'markdown.extensions.attr_list': {},
},
'output_format': 'html5',
}
DEFAULT_LANG = 'de'
OG_LOCALE = "de_DE"
LOCALE = ("de_DE", "de_DE.utf8")