diff --git a/pelicanconf.py b/pelicanconf.py index 86f8c17..8f77ca3 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -11,19 +11,19 @@ TIMEZONE = 'Europe/Berlin' DEFAULT_LANG = 'de' #DEFAULT_DATE_FORMAT = '%d.%m.%Y' (doesn't seem to work) -THEME = "theme/" +FORMATTED_FIELDS = ['summary', 'klappentext'] ############################################################################### # URL & Path Settings # ############################################################################### +THEME = "theme/" PATH = "content" ARTICLE_PATHS = ["posts"] PAGE_PATHS = ["pages"] STATIC_PATHS = ["images", "favicon", "php"] -#STATIC_EXCLUDES = ["unoptimized-images"] -DIRECT_TEMPLATES = ['index', 'tags'] +DIRECT_TEMPLATES = [] IGNORE_FILES = ['**/.*', '__pycache__', 'favicon-from-svg.sh', '*.metadata'] EXTRA_PATH_METADATA = { @@ -41,9 +41,17 @@ EXTRA_PATH_METADATA = { PAGE_URL = '{slug}/' PAGE_SAVE_AS = '{slug}/index.html' + ARTICLE_SAVE_AS = '{category}/{slug}.html' ARTICLE_LANG_SAVE_AS = '{category}/{slug}.html' +AUTHOR_SAVE_AS = '' +AUTHORS_SAVE_AS = '' + +CATEGORY_SAVE_AS = '' +CATEGORIES_SAVE_AS = '' + +PAGINATED_TEMPLATES = {} DEFAULT_DATE = "fs" @@ -95,19 +103,6 @@ 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", "#"), -) ############################################################################### diff --git a/theme/templates/article.html b/theme/templates/article.html index 9c186ab..1c622b0 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -18,9 +18,8 @@
{{ kt(article.klappentext) }}+
{{ article.klappentext }}{% endif %}
elements #} -{% macro kt(text) %} -{% for k in text.strip().split("\n\n") | list %}
{{ k }}
{% endfor %} -{% endmacro %} \ No newline at end of file