t-r.de/pelicanconf.py

84 lines
2.5 KiB
Python

###############################################################################
# Main settings #
###############################################################################
AUTHOR = 'Tobias Radloff'
SITENAME = 'Tobias Radloff'
SITESUBTITLE = "Schriftsteller"
SITETAG = "Schriftsteller"
SITEURL = ""
TIMEZONE = 'Europe/Berlin'
DEFAULT_LANG = 'de'
THEME = "theme/"
###############################################################################
# URL & Path Settings #
###############################################################################
PATH = "content"
ARTICLE_PATHS = ["posts"]
PAGE_PATHS = ["pages"]
#PATH_METADATA = '(?P<path_no_ext>.*)\..*'
#PAGE_SAVE_AS = '{path_no_ext}.html'
ARTICLE_SAVE_AS = '{category}/{slug}.html'
DEFAULT_PAGINATION = 5
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
DISPLAY_PAGES_ON_MENU = DISPLAY_CATEGORIES_ON_MENU = False
MENUITEMS = (
("Werke", "/werke/"),
("Neues", "/neues/"),
("Termine", "/termine/"),
("Autor", "/autor/"),
("Kontakt", "/kontakt/")
)
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", "#"),
)
###############################################################################
# Technical Settings #
###############################################################################
JINJA_ENVIRONMENT = { "extensions": ["jinja2.ext.debug"] }
###############################################################################
# Self-defined Settings #
###############################################################################
STYLESHEET_FILES = ("pico.amber.css", "custom.css")