diff options
Diffstat (limited to 'templates/posts/header.html')
-rw-r--r-- | templates/posts/header.html | 21 |
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: + {% 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> |