aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/article.html6
-rw-r--r--templates/blocks/article-list.html6
2 files changed, 12 insertions, 0 deletions
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 @@
<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>
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>