aboutsummaryrefslogtreecommitdiff
path: root/templates/blocks/article-list.html
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-11-29 19:14:15 +0100
committerDaniel Schadt <kingdread@gmx.de>2023-11-29 19:14:15 +0100
commit536e0db2b3764efa4a9c61fa6d43e362708a9648 (patch)
tree83ee319abfa224c09c018497b2e03ba31086ca0d /templates/blocks/article-list.html
parent1a7e941c558ee9b81b8f16a426a59a41f7b4d7bd (diff)
downloadmoeka-536e0db2b3764efa4a9c61fa6d43e362708a9648.tar.gz
moeka-536e0db2b3764efa4a9c61fa6d43e362708a9648.tar.bz2
moeka-536e0db2b3764efa4a9c61fa6d43e362708a9648.zip
show article authors if wanted
Diffstat (limited to 'templates/blocks/article-list.html')
-rw-r--r--templates/blocks/article-list.html6
1 files changed, 6 insertions, 0 deletions
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 @@
<a href="{{ SITEURL }}/{{ article.category.url }}">
{{ article.category.name }}
</a>
+ {% if DISPLAY_ARTICLE_AUTHORS %}
+ by
+ {% for author in article.authors %}
+ <a href="{{ SITEURL }}/{{ author.url }}">{{ author.name }}</a>{% if not loop.last %}, {% endif %}
+ {% endfor %}
+ {% endif %}
</p>
<h1>