summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.toml2
-rw-r--r--templates/posts/header.html10
2 files changed, 11 insertions, 1 deletions
diff --git a/config.toml b/config.toml
index caec2f3..7efbb00 100644
--- a/config.toml
+++ b/config.toml
@@ -43,6 +43,7 @@ lisens. [Mer detaljer her](@/lisens.md).
"""
en = "English"
nb = "norsk"
+posts_by = "Innlegg av "
[translations.en]
description = "A blog about society, technology, internet, surveillance and other grievances."
@@ -56,6 +57,7 @@ license. [Details here](@/lisens.en.md).
"""
en = "english"
nb = "Norsk"
+posts_by = "Posts by"
[extra]
# Put all your custom variables here
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">