summaryrefslogtreecommitdiffstats
path: root/templates/section.html
blob: b65fdf169f9c861afc861f6124253ff82258cd88 (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
37
38
39
40
41
42
43
44
{% extends "base.html" %}
{% block content %}
<h1>{{ section.title }}</h1>

{{ section.description }}

<section class="post-list">
	{% for post in section.pages | reverse %}
		<article class="post">
			<header class="post-header">
				<div class="post-meta">
					{{ post.date }}
					{% if post.taxonomies["tags"] | length > 0 %}
						<ul class="post-tags">
							{% for tag in post.taxonomies["tags"] %}
								<li class="tag">{{ tag }}</li>
							{% endfor %}
						</ul>
					{% endif %}
				</div>
				<h1 class="post-title">
					<a href="{{ post.permalink | safe }}">
						{{ post.title }}
					</a>
				</h1>
			</header>
			<section class="post-summary">
				{% if post.summary %}
					{{ post.summary | safe }}
				{% else %}
					{{ post.content | safe }}
				{% endif %}
			</section>
			<footer>
				{% if post.summary %}
					<a href="{{ post.permalink }}">
						{{ trans(key="moreprompt", lang=post.lang) }}
					</a>
				{% endif %}
			</footer>
		</article>
	{% endfor %}
</section>
{% endblock content %}