blob: e8dab8ed05cea92c6a22f2ad50097a4480c02683 (
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 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>
{% 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 %}
|