blob: 5f9b22792333df5d8627a9428e5a2112ce29c015 (
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 recetario - Recetario de Yaroslav
{% else %}
Recipe archive - Yaroslav's recipe book
{% endif %}
{% endblock %}
{% block header %}
<h1>
{% if lang == "ru" %}
Архив рецептов Ярослава
{% elif lang == "es" %}
Archivo del recetario de Yaroslav
{% else %}
Yaroslav's recipe 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 %}/food/">{{ trans(key="latest_posts", lang=lang) }}</a>
</li>
{% if lang != "en" %}
<li>
<a href="/food/archive/">🇺🇸 English</a>
</li>
{% endif %}
{% if lang != "ru" %}
<li>
<a href="/ru/food/archive/">🇷🇺 Русский</a>
</li>
{% endif %}
{% if lang != "es" %}
<li>
<a href="/es/food/archive/">🇲🇽 Español</a>
</li>
{% endif %}
</ul>
{% endblock %}
{% block content %}
{% if lang != "en" %}
{% set section_path = "food/_index." ~ lang ~ ".md" %}
{% else %}
{% set section_path = "food/_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 %}
|