From 88405fe413172f8c0b009f1065745404dbb221ac Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 7 Jul 2020 16:14:15 +0200 Subject: Render post authors from taxonomies. Not really handling more than one author yet, but then that's not an immediate concern either. --- templates/posts/header.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/posts/header.html b/templates/posts/header.html index eb5b2ec..cc81767 100644 --- a/templates/posts/header.html +++ b/templates/posts/header.html @@ -3,7 +3,15 @@
{% if post.date %}Publisert: {{ post.date }}{% endif %} - {% if post.extra.author %}av {{ post.extra.author }}{% endif %} + {% if post.taxonomies['authors'] %}av + {% for author in post.taxonomies['authors'] -%} + + + {{ author }} + + + {% endfor -%} + {% endif %}. {% if post.taxonomies %}
-- cgit v1.2.3