summaryrefslogtreecommitdiffstats
path: root/templates/posts/header.html
blob: cc817675f964d6d8f556c0a7df9e923d241e4b17 (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
<header>
	<h1 class="post-title">{{ post.title }}</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>