140 lines
4.7 KiB
Python
140 lines
4.7 KiB
Python
###############################################################################
|
|
# Main settings #
|
|
###############################################################################
|
|
|
|
AUTHOR = 'Tobias Radloff'
|
|
SITENAME = 'Tobias Radloff'
|
|
SITESUBTITLE = "Schriftsteller"
|
|
SITEURL = ""
|
|
|
|
TIMEZONE = 'Europe/Berlin'
|
|
DEFAULT_LANG = 'de'
|
|
#DEFAULT_DATE_FORMAT = '%d.%m.%Y' (doesn't seem to work)
|
|
|
|
THEME = "theme/"
|
|
|
|
###############################################################################
|
|
# URL & Path Settings #
|
|
###############################################################################
|
|
|
|
PATH = "content"
|
|
ARTICLE_PATHS = ["posts"]
|
|
PAGE_PATHS = ["pages"]
|
|
STATIC_PATHS = ["images", "favicon", "php"]
|
|
#STATIC_EXCLUDES = ["unoptimized-images"]
|
|
|
|
DIRECT_TEMPLATES = ['index', 'tags']
|
|
IGNORE_FILES = ['**/.*', '__pycache__', 'favicon-from-svg.sh', '*.metadata']
|
|
|
|
EXTRA_PATH_METADATA = {
|
|
'favicon/favicon.ico': {'path': 'favicon.ico'},
|
|
'php/functions.php': {'path': 'functions.php'},
|
|
'php/subscribe.php': {'path': 'newsletter/subscribe.php'},
|
|
'php/confirm.php': {'path': 'newsletter/confirm.php'},
|
|
'php/unsubscribe.php': {'path': 'newsletter/unsubscribe.php'},
|
|
'php/contact.php': {'path': 'kontakt/contact.php'},
|
|
'php/Exception.php': {'path': 'Exception.php'},
|
|
'php/PHPMailer.php': {'path': 'PHPMailer.php'},
|
|
'php/SMTP.php': {'path': 'SMTP.php'},
|
|
}
|
|
|
|
|
|
PAGE_URL = '{slug}/'
|
|
PAGE_SAVE_AS = '{slug}/index.html'
|
|
ARTICLE_SAVE_AS = '{category}/{slug}.html'
|
|
ARTICLE_LANG_SAVE_AS = '{category}/{slug}.html'
|
|
|
|
|
|
DEFAULT_DATE = "fs"
|
|
|
|
DEFAULT_PAGINATION = 5
|
|
|
|
# Uncomment following line if you want document-relative URLs when developing
|
|
RELATIVE_URLS = True
|
|
|
|
|
|
|
|
###############################################################################
|
|
# Main Menu Settings #
|
|
###############################################################################
|
|
|
|
DISPLAY_PAGES_ON_MENU = DISPLAY_CATEGORIES_ON_MENU = False
|
|
MENUITEMS = (
|
|
("Werke", (
|
|
("", "werke/"),
|
|
("Romane", "romane/"),
|
|
("Kurzprosa", "kurzprosa/"),
|
|
("Lyrik", "lyrik/"),
|
|
("Sonstiges", "sonstiges/")
|
|
)),
|
|
("Neues", "neues/"),
|
|
("Termine", (
|
|
("", "termine/"),
|
|
("Andere Welten", "andere-welten/"),
|
|
("Babelsberger Lesesalon", "babelsberger-lesesalon/")
|
|
)),
|
|
("Über mich", "ueber-mich/"),
|
|
("Kontakt", (
|
|
("", "kontakt/"),
|
|
("Newsletter", "newsletter/"),
|
|
("Datenschutz", "datenschutz/"),
|
|
("Impressum", "impressum/"),
|
|
))
|
|
)
|
|
|
|
IGNORE_FILES = ['**/.*']
|
|
|
|
###############################################################################
|
|
# Feed & Link Settings #
|
|
###############################################################################
|
|
|
|
# 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
|
|
|
|
# Blogroll
|
|
LINKS = (
|
|
("Pelican", "https://getpelican.com/"),
|
|
("Python.org", "https://www.python.org/"),
|
|
("Jinja2", "https://palletsprojects.com/p/jinja/"),
|
|
("You can modify those links in your config file", "#"),
|
|
)
|
|
|
|
# Social widget
|
|
SOCIAL = (
|
|
("You can add links in your config file", "#"),
|
|
("Another social link", "#"),
|
|
)
|
|
|
|
|
|
###############################################################################
|
|
# Plugins and Extensions #
|
|
###############################################################################
|
|
|
|
# jinja2 extensions
|
|
JINJA_ENVIRONMENT = { "extensions": ["jinja2.ext.debug", "jinja2.ext.do"] }
|
|
|
|
# pelican plugins
|
|
PLUGINS = ["pelican.plugins.yaml_metadata", "pelican.plugins.image_process", "minchin.pelican.plugins.optimize_images"]
|
|
|
|
# plugin settings for optimize-images
|
|
OPTIMIZE_IMAGES_DEV_MODE = True # disable optimization in dev mode
|
|
|
|
# plugin settings for image-process
|
|
IMAGE_PROCESS = {
|
|
"featured": ["scale_in 550 100% True"],
|
|
"card": ["scale_in 350 100% True"]
|
|
}
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
# Self-defined Settings #
|
|
###############################################################################
|
|
|
|
STYLESHEET_FILES = ("pico.zinc.css", "custom.css")
|
|
DEFAULT_METADESC = "Tobias Radloff ist preisgekrönter Schriftsteller von Romanen, Kurzgeschichten und Lyrik auf deutsch und englisch. Zu seinen Genres gehören Fantasy, SF, Krimi, Kinder-/Jugendbuch und mehr. Er organisiert und moderiert die regelmäßigen Lesereihen 'Potsdams andere Welten' und 'Babelsberger Lesesalon'." |