From 2ee36790aab616babd90ae7f068886519c97adff Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Tue, 17 Aug 2021 21:33:53 +0200 Subject: [PATCH] Incorporate most of pelicanconf --- pelican_theme_teckids/pelicanconf.py | 65 +++++++++++++++++++++++ pelican_theme_teckids/templates/base.html | 4 +- 2 files changed, 66 insertions(+), 3 deletions(-) diff --git a/pelican_theme_teckids/pelicanconf.py b/pelican_theme_teckids/pelicanconf.py index b164ace..4fe1cbf 100644 --- a/pelican_theme_teckids/pelicanconf.py +++ b/pelican_theme_teckids/pelicanconf.py @@ -1,8 +1,59 @@ from datetime import date import os +AUTHOR = "Teckids e.V." +SITEURL = "" +SITELOGO = "{}/images/logo.png".format(SITEURL) +FAVICON = "{}/images/favicon.png".format(SITEURL) + +# Uncomment following line if you want document-relative URLs when developing +RELATIVE_URLS = True + +ARTICLE_PATHS = ["posts"] +PAGE_PATHS = ["pages"] +STATIC_PATHS = ["static", "images"] +PATH = "content" +PATH_METADATA = "pages/(?P<lang>[^/]*)" +OUTPUT_PATH = "public" +SLUGIFY_SOURCE = "basename" + +TIMEZONE = "Europe/Berlin" +DEFAULT_LANG = "de" + +# 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 + THEME = os.path.dirname(__file__) +PRIMARY_DARK = "#FF6600" +PRIMARY_LIGHT = "#FFFFFF" +SECONDARY_DARK = "#015ebe" +SECONDARY_LIGHT = "#00c5fa" + +PLUGIN_PATHS = ["plugins"] +PLUGINS = ["i18n_subsites", "sitemap", "summary", "jinja2content"] +MARKDOWN = { + "extension_configs": { + "markdown.extensions.attr_list": {}, + "markdown.extensions.md_in_html": {} + } +} + +MENUITEMS = [ + ("Startseite", "index.html"), + ("Neuigkeiten", "archives.html"), +] +FOOTERMENU = [ + ("Impressum", "/pages/impressum.html") +] +FOOTERTEXT = "Teckidse.V.<br/>Hundeshagenstr. 26<br/>53225 Bonn" + +DEFAULT_PAGINATION = 10 + TODAY = date.today() # Hint: These can be overridden in any site using the template; either by overwriting @@ -17,3 +68,17 @@ PARTNERS = [ ("Open Source Initiative", "/theme/images/partners/osi.png", "https://opensource.org"), ("Free Software Foundation Europe", "/theme/images/partners/fsfe.png", "https://fsfe.orf"), ] + +CUSTOM_STYLESHEET = "{}/static/css/custom.css".format(SITEURL) + +LICENCE_DEFAULT = "CC-BY-SA 4.0+" + +LICENCETEXTS = { + "de": "Dieser Inhalt ist, sofern nicht bei einzelnen Medien anders angegeben, lizenziert unter:", + "en": "If not stated differently for single media, this content is licenced under:", +} + + +SITEMAP = { + "format": "txt", +} diff --git a/pelican_theme_teckids/templates/base.html b/pelican_theme_teckids/templates/base.html index 0fd2f08..70f4c3f 100644 --- a/pelican_theme_teckids/templates/base.html +++ b/pelican_theme_teckids/templates/base.html @@ -146,9 +146,7 @@ {% block languagefooter %}{% endblock %} <div class="col s6"> <p style="text-align: right"> - {% for text, link in MINIFOOTER_MENU %} - <a href="{{ link }}">{{ text }}</a><br /> - {% endfor %} + {{ FOOTERTEXT }} </p> </div> </div> -- GitLab