blob: 4cf03c78899e7a6bded795ab472e2fbbd24453bd (
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
|
{% extends "base.html" %}
{% block title %}
{% if page.permalink is containing("weblog") %}
{{ page.title }} - Yaroslav's weblog
{% elif page.permalink is containing("food") %}
{{ page.title }} - Yaroslav's recipe book
{% else %}
{{ page.title }} - Yaroslav's website
{% endif %}
{% endblock %}
{% block header %}
<h1>{{ page.title }}</h1>
<p class="publish-date">
{{ trans(key="published", lang=lang) }}
{{ page.date | date(format="%Y-%m-%d %H:%M UTC") }}
{{ trans(key="published_on", lang=lang) }}
{% if page.permalink is containing("weblog") %}
<a href="{% if lang != "en" %}/{{ lang }}{% endif %}/weblog">
{{ trans(key="weblog_title", lang=lang) }}
</a>
{% elif page.permalink is containing("food") %}
<a href="{% if lang != "en" %}/{{ lang }}{% endif %}/food">
{{ trans(key="recipes_title", lang=lang) }}
</a></p>
{% endif %}
</p>
{% if page.updated %}
<p class="publish-date">
{{ trans(key="edited", lang=lang) }}
{{ page.updated | date(format="%Y-%m-%d %H:%M UTC") }}
</p>
{% endif %}
{% if page.translations | length > 1 %}
<p class="publish-date">
{{ trans(key="also_read", lang=lang) }}
{% for trans in page.translations %}
{% if trans.lang != lang %}
{% if trans.lang == "ru" %}
<a href="{{ trans.permalink }}">Русский</a>.
{% elif trans.lang == "es" %}
<a href="{{ trans.permalink }}">Español</a>.
{% else %}
<a href="{{ trans.permalink }}">English</a>.
{% endif %}
{% endif %}
{% endfor %}
</p>
{% endif %}
{% endblock %}
{% block content %}
<div class="post-container">
{{ page.content | safe }}
</div>
{% endblock %}
|