aboutsummaryrefslogtreecommitdiff
path: root/templates/weblog_archive.html
blob: 74613e4dc9422bbdb727ec5e6bd749099718d0bf (plain)
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
{% extends "base.html" %}
{% block title %}
{% if lang == "ru" %}
Архив веб-журнала - Веб-журнал Ярослава
{% elif lang == "es" %}
Archivo del weblog - Weblog de Yaroslav
{% else %}
Weblog archive - Yaroslav's weblog
{% endif %}
{% endblock %}
{% block header %}
<h1>
	{% if lang == "ru" %}
	Архив веб-журнала Ярослава
	{% elif lang == "es" %}
	Archivo del weblog de Yaroslav
	{% else %}
	Yaroslav's weblog archive
	{% endif %}
</h1>
{% endblock %}
{% block content %}
{% if lang != "en" %}
{% set section_path = "weblog/_index." ~ lang ~ ".md" %}
{% else %}
{% set section_path = "weblog/_index.md" %}
{% endif %}
{% set section = get_section(path=section_path) %}
<div class="post-container">
	{% for year, posts in section.pages | group_by(attribute="year") %}
	<h2>{{ year }}</h2>
	<ul>
	{% for post in posts %}
	<li>
		<span class="publish-date">{{ post.date | date }}</span> - 
		<a href="{{ post.permalink }}">{{ post.title }}</a>
	</li>
	{% endfor %}
	</ul>
	{% endfor %}
</div>
{% endblock %}