summaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: 48857c4903f406f6df5ff4ad3498da1021b0f293 (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
45
46
{% extends "base.html" %}
{% block content %}

<section id="home-blurb">
	{{ section.content | safe }}
</section>
<section id="translations">
	This page is also available in:
	{% for l in section.translations %}
		{% if l.lang != lang %}
			<a href="{{ l.permalink | safe }}">{{ trans(key=l.lang) }}</a>
		{% endif %}
	{% endfor %}
</section>

<section class="subsections">
	{% for sub in section.subsections %}
		{% set s = get_section(path=sub) %}
		<article>
			<header>
				<h1><a href="{{s.permalink | safe}}">{{ s.title }}</a></h1>
				<div class="description">
					{{ s.description | markdown | safe }}
				</div>
			</header>
			<section class="post-list">
				<h2>{{ trans(key="latest", lang=lang) }}</h2>
				<ul>
					{% for post in s.pages | reverse %}
						<li>
							{{ post.date }}:
							<a href="{{ post.permalink | safe }}">
								{{ post.title }}
							</a>
						</li>
						{% if loop.index == 5 %}{% break %}{% endif %}
					{% endfor %}
				</ul>
			</section>
			<footer>
				<a href="{{ s.permalink }}">{{ trans(key="allposts", lang=lang) }} {{ s.title }}...</a>
			</footer>
		</article>
	{% endfor %}
</section>
{% endblock content %}