summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-07-07 16:14:15 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-07-07 16:43:55 +0200
commit88405fe413172f8c0b009f1065745404dbb221ac (patch)
treed6399d481eeb4e45eb05f97155e48af9870a46ac /templates
parent9beb127bb511b94998c5d236553e58a9fb1c4636 (diff)
downloadrabalderz-88405fe413172f8c0b009f1065745404dbb221ac.tar.gz
rabalderz-88405fe413172f8c0b009f1065745404dbb221ac.tar.bz2
rabalderz-88405fe413172f8c0b009f1065745404dbb221ac.zip
Render post authors from taxonomies.
Not really handling more than one author yet, but then that's not an immediate concern either.
Diffstat (limited to 'templates')
-rw-r--r--templates/posts/header.html10
1 files changed, 9 insertions, 1 deletions
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 @@
<div class="post-meta">
<span class="meta-publish">
{% 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'] -%}
+ <span class="author">
+ <a class="author-link" href="{{ get_taxonomy_url(kind="authors", name=author, lang=lang) | safe }}">
+ {{ author }}
+ </a>
+ </span>
+ {% endfor -%}
+ {% endif %}.
</span>
{% if post.taxonomies %}
<div class="meta-tags">