summaryrefslogtreecommitdiffstats
path: root/templates/posts/header.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-06 17:26:51 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-06 17:26:51 +0200
commit1383fee0f3ee632110259218a20fbf5446814fd2 (patch)
tree3482a1618cbbe74f4a068591b4a9722b5ed1d956 /templates/posts/header.html
parent6ba2af3d6b477e775dfbeaf8ed0f03d9d7648e32 (diff)
downloadrabalderz-1383fee0f3ee632110259218a20fbf5446814fd2.tar.gz
rabalderz-1383fee0f3ee632110259218a20fbf5446814fd2.tar.bz2
rabalderz-1383fee0f3ee632110259218a20fbf5446814fd2.zip
Refactor post headers to separate template.
Diffstat (limited to 'templates/posts/header.html')
-rw-r--r--templates/posts/header.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/posts/header.html b/templates/posts/header.html
new file mode 100644
index 0000000..0266f6e
--- /dev/null
+++ b/templates/posts/header.html
@@ -0,0 +1,21 @@
+<header>
+ <h1 class="post-title">{{ post.title }}</h1>
+ <div class="post-meta">
+ <span class="meta-publish">
+ Publisert: {{ post.date }}
+ {% if post.extra.author %}av {{ post.extra.author }}{% endif %}
+ </span>
+ {% if post.taxonomies %}
+ <div class="meta-tags">
+ Merket:&nbsp;
+ {% for tag in post.taxonomies['tags'] -%}
+ <span>
+ <a class="tag-link" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">
+ {{ tag }}
+ </a>
+ </span>
+ {% endfor -%}
+ </div>
+ {% endif %}
+ </div>
+</header>