diff --git a/pelican_theme_teckids/pelicanconf.py b/pelican_theme_teckids/pelicanconf.py index 3ed7709f9d882152cfda3f01b03dd6607dc70ada..4cb9f2007f605e3935e13502e6c2bd9b9a5e021b 100644 --- a/pelican_theme_teckids/pelicanconf.py +++ b/pelican_theme_teckids/pelicanconf.py @@ -19,6 +19,11 @@ SLUGIFY_SOURCE = "basename" TIMEZONE = "Europe/Berlin" DEFAULT_LANG = "de" +DEFAULT_DATE_FORMAT = "%x" +DATE_FORMATS = { + "de": "%A, %d. %B %Y", + "en": "%A, %Y-%m-%d", +} # Feed generation is usually not desired when developing FEED_ALL_ATOM = None diff --git a/pelican_theme_teckids/templates/archives.html b/pelican_theme_teckids/templates/archives.html index d41ae5a7fbab39bb0a116d3e927701556ee69b99..f3470da3d191322a1a0bdf64e0f224c843d56183 100644 --- a/pelican_theme_teckids/templates/archives.html +++ b/pelican_theme_teckids/templates/archives.html @@ -10,12 +10,12 @@ {% if article.source_link %} {# This is a webring article #} <h2><a href="{{ article.link }}">{{ article.title }}</a></h2> - <p>{{ article.date|strftime('%Y-%m-%d') }} · <a href="{{ article.author_detail.href }}">{{ article.author_detail.name }}</a> · <a href="{{ article.source_link }}">{{ article.source_title }}</a></p> + <p>{{ article.date }} · <a href="{{ article.author_detail.href }}">{{ article.author_detail.name }}</a> · <a href="{{ article.source_link }}">{{ article.source_title }}</a></p> {{ article.description }} {% else %} {# This is a local article #} <h2><a href="{{ article.url }}">{{ article.title }}</a></h2> - <p>{{ article.date|strftime('%Y-%m-%d') }} · <a href="{{ article.author.url }}">{{ article.author }}</a></p> + <p>{{ article.date }} · <a href="{{ article.author.url }}">{{ article.author }}</a></p> {{ article.summary }} {% endif %} {% endfor %}