summaryrefslogblamecommitdiffstats
path: root/templates/section.html
blob: 1feec4aaeb4a985e6db12ddd0e059954cc4068a9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                         




                                             





                            
                                       
                                      
                                                         

















                                                                                             
{% 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 %}