summaryrefslogtreecommitdiffstats
path: root/templates/film/section.html
blob: 85e592dcfa3bacbc82d71fa9acf79e42c13ec8e3 (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 "film/post_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 %}