2022-03-01 01:18:57 +01:00
|
|
|
#!/usr/bin/env python3
|
2022-02-28 14:13:56 +01:00
|
|
|
# -*- coding: utf-8 -*- #
|
|
|
|
|
2022-03-01 01:18:57 +01:00
|
|
|
from datetime import datetime
|
|
|
|
|
2022-02-28 14:13:56 +01:00
|
|
|
AUTHOR = 'Trolli Schmittlauch'
|
2022-03-01 01:18:57 +01:00
|
|
|
SITENAME = 'Schmittlauchs Blog & Homepage'
|
|
|
|
SITETITLE = 'schmittlauch'
|
2022-03-01 01:53:07 +01:00
|
|
|
SITESUBTITLE = 'Tech, Politik & Leben'
|
2022-03-01 02:17:20 +01:00
|
|
|
SITEURL = 'http://127.0.0.1:8000'
|
2022-03-01 01:18:57 +01:00
|
|
|
SITELOGO = '/images/avatar.png'
|
|
|
|
FAVICON = '/images/favicon.svg'
|
2022-02-28 14:13:56 +01:00
|
|
|
|
|
|
|
PATH = 'content'
|
2022-03-01 01:53:07 +01:00
|
|
|
STATIC_PATHS = ['images', 'static']
|
2022-03-01 01:18:57 +01:00
|
|
|
ARTICLE_PATHS = ['blog']
|
|
|
|
INDEX_SAVE_AS = 'blog/index.html'
|
2022-03-01 02:32:06 +01:00
|
|
|
ARTICLE_URL = 'blog/{slug}.html'
|
|
|
|
ARTICLE_SAVE_AS = 'blog/{slug}.html'
|
2022-03-01 01:18:57 +01:00
|
|
|
|
2022-03-01 01:53:07 +01:00
|
|
|
CUSTOM_CSS = "static/custom.css"
|
2022-03-02 03:00:44 +01:00
|
|
|
# enable typography pre-processing for nicer appearance
|
|
|
|
TYPOGRIFY = True
|
2022-02-28 14:13:56 +01:00
|
|
|
|
|
|
|
TIMEZONE = 'Europe/Berlin'
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2022-03-01 01:18:57 +01:00
|
|
|
DISPLAY_PAGES_ON_MENU = False
|
|
|
|
DISPLAY_CATEGORIES_ON_MENU = False
|
|
|
|
MAIN_MENU = True
|
|
|
|
MENUITEMS = (
|
2022-03-01 02:17:20 +01:00
|
|
|
("Blog", "/blog/"),
|
2022-03-01 01:18:57 +01:00
|
|
|
("Archives", "/archives.html"),
|
|
|
|
("Categories", "/categories.html"),
|
|
|
|
("Tags", "/tags.html"),
|
|
|
|
("Impressum", "/pages/impressum.html"),
|
2022-03-04 01:01:18 +01:00
|
|
|
("Seitenquelltext", "https://git.orlives.de/schmittlauch/schmittlau.ch-pelican/"),
|
2022-03-01 01:18:57 +01:00
|
|
|
)
|
|
|
|
# lefthand menu
|
|
|
|
LINKS = (('Blog', '/blog/'),
|
|
|
|
('Über mich', '/pages/about.html'),
|
|
|
|
('Berufliches & Lebenslauf', '/pages/professional.html'),
|
|
|
|
('Kontakt', '/pages/contact.html'),
|
|
|
|
#('', ''),
|
|
|
|
)
|
2022-02-28 14:13:56 +01:00
|
|
|
|
|
|
|
# Social widget
|
2022-03-01 01:18:57 +01:00
|
|
|
SOCIAL = (
|
|
|
|
("mastodon", "https://toot.matereal.eu/@schmittlauch"),
|
|
|
|
("twitter", "https://twitter.com/schmittlauch"),
|
|
|
|
#("matrixdotorg", ""),
|
2022-03-02 03:00:18 +01:00
|
|
|
("envelope", "mailto:t.schmittlauch+blog@orlives.de"),
|
2022-03-03 17:14:31 +01:00
|
|
|
("git", "https://git.orlives.de/schmittlauch/"),
|
2022-03-01 01:18:57 +01:00
|
|
|
("github", "https://github.com/schmittlauch/"),
|
|
|
|
)
|
2022-02-28 14:13:56 +01:00
|
|
|
|
|
|
|
DEFAULT_PAGINATION = 10
|
|
|
|
|
|
|
|
# Uncomment following line if you want document-relative URLs when developing
|
|
|
|
#RELATIVE_URLS = True
|
|
|
|
|
2022-02-28 17:13:02 +01:00
|
|
|
# Multilang
|
2022-03-02 03:00:44 +01:00
|
|
|
|
|
|
|
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',
|
|
|
|
}
|
2022-03-01 01:18:57 +01:00
|
|
|
DEFAULT_LANG = 'de'
|
|
|
|
OG_LOCALE = "de_DE"
|
|
|
|
LOCALE = ("de_DE", "de_DE.utf8")
|
|
|
|
|
2022-02-28 14:13:56 +01:00
|
|
|
PLUGIN_PATHS = ['pelican-plugins']
|
|
|
|
PLUGINS = ['i18n_subsites']
|
2022-03-01 01:18:57 +01:00
|
|
|
# Enable Jinja2 i18n extension used to parse translations.
|
|
|
|
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
|
|
|
|
# Default theme language.
|
|
|
|
I18N_TEMPLATES_LANG = "en"
|
|
|
|
|
2022-02-28 14:13:56 +01:00
|
|
|
|
|
|
|
I18N_SUBSITES = {
|
2022-03-01 01:18:57 +01:00
|
|
|
(_LOC := 'en'): {
|
|
|
|
'OG_LOCALE': "en",
|
|
|
|
'LOCALE': ("en_GB", "en_GB.utf8"),
|
|
|
|
|
|
|
|
# translation of strings, menu, titles
|
2022-03-01 02:16:32 +01:00
|
|
|
'SITENAME': "Schmittlauch's Blog & Homepage",
|
|
|
|
'SITESUBTITLE': 'Tech, Politics & Life',
|
2022-03-01 01:18:57 +01:00
|
|
|
'MENUITEMS': (
|
2022-03-01 02:32:06 +01:00
|
|
|
("Blog", f"/{_LOC}/blog/"),
|
|
|
|
("Archives", f"/{_LOC}/archives.html"),
|
|
|
|
("Categories", f"/{_LOC}/categories.html"),
|
|
|
|
("Tags", f"/{_LOC}/tags.html"),
|
2022-03-02 18:03:48 +01:00
|
|
|
("Legal", f"/{_LOC}/pages/impressum.html"),
|
2022-03-04 01:01:18 +01:00
|
|
|
("Page Source", "https://git.orlives.de/schmittlauch/schmittlau.ch-pelican/"),
|
2022-03-01 01:18:57 +01:00
|
|
|
),
|
|
|
|
'LINKS': (
|
2022-03-01 02:32:06 +01:00
|
|
|
('Blog', f'/{_LOC}/blog/'),
|
|
|
|
('About', f'/{_LOC}/pages/about.html'),
|
|
|
|
('Professional & CV', f'/{_LOC}/pages/professional.html'),
|
|
|
|
('Contact', f'/{_LOC}/pages/contact.html'),
|
2022-03-01 01:18:57 +01:00
|
|
|
#('', ''),
|
|
|
|
),
|
2022-02-28 14:13:56 +01:00
|
|
|
}
|
|
|
|
}
|
2022-03-01 01:18:57 +01:00
|
|
|
I18N_UNTRANSLATED_ARTICLES = 'keep'
|
2022-02-28 17:13:02 +01:00
|
|
|
|
2022-03-01 01:18:57 +01:00
|
|
|
# Theming, templates, and specific configs
|
2022-02-28 17:13:02 +01:00
|
|
|
THEME = './theme/Flex'
|
2022-03-01 01:18:57 +01:00
|
|
|
|
|
|
|
THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE = True
|
|
|
|
THEME_COLOR_ENABLE_USER_OVERRIDE = True
|
|
|
|
|
|
|
|
CC_LICENSE = {
|
|
|
|
"name": "Creative Commons Attribution-ShareAlike",
|
|
|
|
"version": "4.0",
|
|
|
|
"slug": "by-sa",
|
2022-03-01 02:15:38 +01:00
|
|
|
"local_icons": True,
|
2022-03-01 01:18:57 +01:00
|
|
|
}
|
|
|
|
COPYRIGHT_YEAR = datetime.now().year
|
|
|
|
|
2022-03-01 01:53:07 +01:00
|
|
|
DISABLE_URL_HASH = True
|
2022-03-01 01:18:57 +01:00
|
|
|
USE_GOOGLE_FONTS = False
|