aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
blob: 010677b68b987426bac249663a49e6048edf6fb9 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
{% set permalink = "/weblog/" %}
{% if section %}
	{% set permalink = section.permalink %}
{% elif page %}
	{% set permalink = page.permalink %}
{% endif %}
<html>
	<head>
		<meta charset="utf-8">
		<meta content="width=device-width, initial-scale=1" name="viewport">
		<title>
			{% block title %}
			{{ config.title }}
			{% endblock %}
		</title>
		<link rel="stylesheet" href="{{ get_url(path="css/yaroslavps.css") }}">
		<link rel="icon" type="image/png" href="{{ get_url(path="favicon32x32.png") }}">
		<link rel="icon" type="image/png" href="{{ get_url(path="favicon64x64.png") }}">
		{% block extrahead %}
		{% endblock %}
	</head>
	<body>
		<div class="main-container">
			{% block page %}
			<div class="header-container">
				{% block header %}
				<h1><a href="/">Yaroslav de la Peña Smirnov</a></h1>
				{% endblock %}
			</div>
			<div class="content-container">
				{% block content %}
				{% endblock %}
			</div>
			<div class="sidebar-container">
				<div class="sticky-wrapper">
					<h3>
						{% if lang == "ru" %}
						Навигация
						{% elif lang == "es" %}
						En este sitio
						{% else %}
						Navigation
						{% endif %}
					</h3>
					<ul class="navigation-list">
						<li>
							{% if lang == "ru" %}
							<a href="/ru/">Главная</a>
							{% elif lang == "es" %}
							<a href="/es/">Inicio</a>
							{% else %}
							<a href="/">Home page</a>
							{% endif %}
							<ul>
								{% if lang != "en" %}
									<li><a href="/">English</a></li>
								{% endif %}
								{% if lang != "es" %}
									<li><a href="/es/">Español</a></li>
								{% endif %}
								{% if lang != "ru" %}
									<li><a href="/ru/">Русский</a></li>
								{% endif %}
							</ul>
						</li>
						<li>
							{% if lang == "ru" %}
							<a href="/ru/weblog/">Веб-журнал</a>
							{% elif lang == "es" %}
							<a href="/es/weblog/">Weblog</a>
							{% else %}
							<a href="/weblog/">Weblog</a>
							{% endif %}
						<ul>
							<li>
								{% if lang == "ru" %}
								<a href="/ru/weblog/archive/">Архив</a>
								{% elif lang == "es" %}
								<a href="/es/weblog/archive/">Archivo</a>
								{% else %}
								<a href="/weblog/archive/">Archive</a>
								{% endif %}
							</li>
						</ul>
						</li>
						<li>
							{% if lang == "ru" %}
							<a href="/ru/food/">Книга рецептов</a>
							{% elif lang == "es" %}
							<a href="/es/food/">Recetario</a>
							{% else %}
							<a href="/food/">Recipe book</a>
							{% endif %}
						<ul>
							<li>
								{% if lang == "ru" %}
								<a href="/ru/food/archive/">Архив</a>
								{% elif lang == "es" %}
								<a href="/es/food/archive/">Archivo</a>
								{% else %}
								<a href="/food/archive/">Archive</a>
								{% endif %}
							</li>
						</ul>
						</li>
					</ul>
					<h3>
						{% if lang == "ru" %}
						RSS-лента
						{% elif lang == "es" %}
						RSS
						{% else %}
						RSS feeds
						{% endif %}
					</h3>
					<ul class="rss-list">
						<li>
							{% if lang == "ru" %}
							<a href="/ru/weblog/feed.xml">RSS веб-журнала</a>
							{% elif lang == "es" %}
							<a href="/es/weblog/feed.xml">RSS del weblog</a>
							{% else %}
							<a href="/weblog/feed.xml">Weblog RSS</a>
							{% endif %}
						</li>
						<li>
							{% if lang == "ru" %}
							<a href="/ru/food/feed.xml">RSS книги рецептов</a>
							{% elif lang == "es" %}
							<a href="/es/food/feed.xml">RSS del recetario</a>
							{% else %}
							<a href="/food/feed.xml">Recipe book RSS</a>
							{% endif %}
						</li>
					</ul>
					<h3>Email</h3>
					<a href="mailto:yps@yaroslavps.com">yps@yaroslavps.com</a>
					<h3>PGP</h3>
					<a href="https://www.yaroslavps.com/files/yaroslavpub.gpg">
						BD900E5D624046DC
					</a>
					<h3>
						{% if lang == "ru" %}
						Другие ссылки
						{% elif lang == "es" %}
						Otros vínculos
						{% else %}
						Other stuff
						{% endif %}
					</h3>
					<div class="links-container">
						<a href="https://github.com/Yaroslav-95" title="GitHub">
						<span class="icon"><img src="/svg/icons/github.svg"/></span>
						</a>
						<a href="https://git.yaroslavps.com/" title="Git server">
						<span class="icon"><img src="/svg/icons/git.svg"/></span>
						</a>
					</div>
				</div>
			</div>
			{% endblock %}
		</div>
	</body>
</html>