summaryrefslogtreecommitdiffstats
path: root/templates/film/post_header.html
blob: 22a9e5bf50b56d8c86239fe3db457fecfb18624e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<header>
	<h1 class="post-title">
		<a href="{{ post.permalink }}">{{ post.title }}</a>
		{% 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>