summaryrefslogtreecommitdiffstats
path: root/templates/film/post_header.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/film/post_header.html')
-rw-r--r--templates/film/post_header.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/film/post_header.html b/templates/film/post_header.html
new file mode 100644
index 0000000..e3d5a29
--- /dev/null
+++ b/templates/film/post_header.html
@@ -0,0 +1,36 @@
+<header>
+ <h1 class="post-title">
+ {{ post.title }}
+ {% if post.extra.country %}
+ ({{ post.extra.country }}{% if post.extra.year %}, {{ post.extra.year }}){% endif %}
+ {% else %}
+ {% if post.extra.year %}({{ post.extra.year }}){% endif %}
+ {% endif %}
+ </h1>
+ <div class="post-meta">
+ <span class="meta-publish">
+ {% if post.date %}Publisert: {{ post.date }}{% 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">
+ Merket:&nbsp;
+ {% for tag in post.taxonomies['tags'] -%}
+ <span>
+ <a class="tag-link" href="{{ get_taxonomy_url(kind='tags', name=tag, lang=lang) | safe }}">
+ {{ tag }}
+ </a>
+ </span>
+ {% endfor -%}
+ </div>
+ {% endif %}
+ </div>
+</header>