summaryrefslogtreecommitdiffstats
path: root/templates/section.html
blob: 1feec4aaeb4a985e6db12ddd0e059954cc4068a9 (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
{% extends "base.html" %}
{% block language %}
{% set translations = section.translations %}
{% include "translation-links.html" %}
{% endblock language %}

{% block content %}
<h1>{{ section.title }}</h1>

{{ section.description }}

<section class="post-list">
	{% for post in section.pages %}
		<article class="post">
			{% include "posts/header.html" %}
			<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 %}