From 270a88db94be37ec8a2f791b5fecd482cfdc89e9 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Tue, 17 Aug 2021 16:12:53 +0200 Subject: [PATCH] Display author in aggregated news --- pelican_theme_teckids/templates/archives.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pelican_theme_teckids/templates/archives.html b/pelican_theme_teckids/templates/archives.html index 52aac87..1bb80a0 100644 --- a/pelican_theme_teckids/templates/archives.html +++ b/pelican_theme_teckids/templates/archives.html @@ -10,14 +10,11 @@ {% 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.source_link }}">{{ article.source_title }}</a></p> + <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> {{ article.summary }} {% else %} {# This is a local article #} <h2><a href="{{ article.url }}">{{ article.title }}</a></h2> - - {% import 'translations.html' as translations with context %} - {{ translations.translations_for(article) }} <p>{{ article.date|strftime('%Y-%m-%d') }} · <a href="{{ article.author.url }}">{{ article.author }}</a></p> {{ article.summary }} {% endif %} -- GitLab