From 536e0db2b3764efa4a9c61fa6d43e362708a9648 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 29 Nov 2023 19:14:15 +0100 Subject: show article authors if wanted --- templates/article.html | 6 ++++++ templates/blocks/article-list.html | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/templates/article.html b/templates/article.html index 7ecdef9..415fe5d 100644 --- a/templates/article.html +++ b/templates/article.html @@ -14,6 +14,12 @@ {{ article.category.name }} + {% if DISPLAY_ARTICLE_AUTHORS %} + by + {% for author in article.authors %} + {{ author.name }}{% if not loop.last %}, {% endif %} + {% endfor %} + {% endif %}

diff --git a/templates/blocks/article-list.html b/templates/blocks/article-list.html index a31836f..f69c926 100644 --- a/templates/blocks/article-list.html +++ b/templates/blocks/article-list.html @@ -10,6 +10,12 @@ {{ article.category.name }} + {% if DISPLAY_ARTICLE_AUTHORS %} + by + {% for author in article.authors %} + {{ author.name }}{% if not loop.last %}, {% endif %} + {% endfor %} + {% endif %}

-- cgit v1.2.3