blob: 577ad0d04dfa3b1b68ad02a320415d39aaf42e2d (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{% 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>
<ul class="nav-container">
<li>
<a href="{% if lang != "en" %}/{{ lang }}{% endif %}/">
{{ trans(key="back_home", lang=lang) }}
</a>
</li>
<li>
<a href="{% if lang != "en" %}/{{ lang }}{% endif %}/weblog/">{{ trans(key="latest_posts", lang=lang) }}</a>
</li>
{% if lang != "en" %}
<li>
<a href="/weblog/archive/">🇺🇸 English</a>
</li>
{% endif %}
{% if lang != "ru" %}
<li>
<a href="/ru/weblog/archive/">🇷🇺 Русский</a>
</li>
{% endif %}
{% if lang != "es" %}
<li>
<a href="/es/weblog/archive/">🇲🇽 Español</a>
</li>
{% endif %}
</ul>
{% 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 %}
|