aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 6a1a9492f98f12673dbada9d5fda0dde1d5fa1ff (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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
{% extends "base.html" %}
{% block page %}
	{% if lang != "en" %}
	{% set weblog_path = "weblog/_index." ~ lang ~ ".md" %}
	{% set recipes_path = "food/_index." ~ lang ~ ".md" %}
	{% else %}
	{% set weblog_path = "weblog/_index.md" %}
	{% set recipes_path = "food/_index.md" %}
	{% endif %}
	{% set weblog = get_section(path=weblog_path) %}
	{% set recipes = get_section(path=recipes_path) %}
	<div class="landing-page-container">
		<h1>{{ trans(key="full_name", lang=lang) }}</h1>
		<div class="nav-container">
			{% if lang != "en" %}
			<a href="/">🇺🇸 English</a>
			{% endif %}
			{% if lang != "ru" %}
			<a href="/ru/">🇷🇺 Русский</a>
			{% endif %}
			{% if lang != "es" %}
			<a href="/es/">🇲🇽 Español</a>
			{% endif %}
		</div>

		{% if lang == "ru" %}
		<p>
		Добро пожаловать в мой уголок интернета. Чувствуйте себя как дома.
		Иногда пишу на русском, но по большей части пишу на английском. Что
		можно найти на моём сайте:
		</p>
		{% elif lang == "es" %}
		<p>
		Bienvenido a mi pequeño rincón de internet. Siéntete libre de echar una
		mirada. A veces escribo en español, pero la mayor parte del contenido
		está en inglés. Esto es lo que puedes encontrar en mi sitio:
		</p>
		{% else %}
		<p>
		Welcome to my little corner of the internet. I'm Yaroslav. I write
		software for a living, and also as a hobby. Currently working on
		software for LTE and 5G NR technologies. 
		</p>
		<p>
		I also sometimes post things
		that I think are interesting or of value to this site, although maybe
		not as often as I'd like. Feel free to take a look around. This is what
		you can find on my website:
		</p>
		{% endif %}

		<h2>{{ trans(key="weblog", lang=lang) }}</h2>
		{% set latest_weblog = weblog.pages[0] %}
		<p>
		{% if lang == "en" %}
		My thoughts on different matters and some things that I would like to
		remember.
		{% elif lang == "es" %}
		Mis pensamientos acerca de diferentes temas y ciertas cosas que quisiera
		recordar.
		{% elif lang == "ru" %}
		Мои мысли о разных предметах и то, что мне бы хотелось запомнить.
		{% endif %}
		</p>
		<div class="post-container partial">
			<h3>
				<a href="{{ latest_weblog.permalink }}">{{ latest_weblog.title }}</a>
				{% if latest_weblog.date %}
				<span class="publish-date">{{ latest_weblog.date | date }}</span>
				{% endif %}
			</h3>
			{% if latest_weblog.summary %}
				{{ latest_weblog.summary | safe }}
			{% endif %}
		</div>
		<div class="nav-container">
			<a class="see-more" href="{{ weblog.permalink }}">{{ trans(key="see_more", lang=lang) }}</a>
			<a href="{{ weblog.permalink }}archive">{{ trans(key="archive", lang=lang) }}</a>
			<a href="{{ weblog.permalink }}feed.xml"><span class="icon"><img alt="rss-icon" src="/svg/icons/rss.svg"/></span> RSS</a>
		</div>

		<h2>{{ trans(key="recipes", lang=lang) }}</h2>
		{% set latest_recipe = recipes.pages[0] %}
		<p>
		{% if lang == "en" %}
		A collection of my favorite recipes that I often cook.
		{% elif lang == "es" %}
		Una colección de mis recetas favoritas que cocino con frecuencia.
		{% elif lang == "ru" %}
		Набор моих любимых рецептов, которые часто готовлю.
		{% endif %}
		</p>
		<div class="post-container partial">
			<h3>
				<a href="{{ latest_recipe.permalink }}">{{ latest_recipe.title }}</a>
				{% if latest_recipe.date %}
				<span class="publish-date">{{ latest_recipe.date | date }}</span>
				{% endif %}
			</h3>
			{% if latest_recipe.summary %}
				{{ latest_recipe.summary | safe }}
			{% endif %}
		</div>
		<div class="nav-container">
			<a class="see-more" href="{{ recipes.permalink }}">{{ trans(key="see_more", lang=lang) }}</a>
			<a href="{{ recipes.permalink }}archive">{{ trans(key="archive", lang=lang) }}</a>
			<a href="{{ recipes.permalink }}feed.xml"><span class="icon"><img alt="rss-icon" src="/svg/icons/rss.svg"/></span> RSS</a>
		</div>

		<h2>{{ trans(key="photos", lang=lang) }}</h2>
		<p>
		{% if lang == "en" %}
		A gallery with some photographs I've taken on my free time.
		{% elif lang == "es" %}
		Una galería de fotografías que he tomado en mi tiempo libre.
		{% elif lang == "ru" %}
		Галерея с фотографиями сняты в моё свободное время.
		{% endif %}
		</p>
		<div class="album-container">
			<a href="https://www.yaroslavps.com/photos/st-petersburg-summer-2019/_DSC3948">
				<img alt="" class="thumbnail" src="https://www.yaroslavps.com/photos/st-petersburg-summer-2019/_DSC3948/_DSC3948_thumb.jpg">
			</a>
			<a href="https://www.yaroslavps.com/photos/st-petersburg-summer-2019/_DSC1690">
				<img alt="" class="thumbnail" src="https://www.yaroslavps.com/photos/st-petersburg-summer-2019/_DSC1690/_DSC1690_thumb.jpg">
			</a>
			<a href="https://www.yaroslavps.com/photos/navy-day-2019/_DSC3892">
				<img alt="" class="thumbnail" src="https://www.yaroslavps.com/photos/navy-day-2019/_DSC3892/_DSC3892_thumb.jpg">
			</a>
			<a href="https://www.yaroslavps.com/photos/tallinn-2019/_DSC4468">
				<img alt="" class="thumbnail" src="https://www.yaroslavps.com/photos/tallinn-2019/_DSC4468/_DSC4468_thumb.jpg">
			</a>
		</div>
		<div class="nav-container">
			<a class="see-more" href="/photos">{{ trans(key="see_more", lang=lang) }}</a>
		</div>

		<h2>
			{% if lang == "ru" %}
			Связаться
			{% elif lang == "es" %}
			Contacto
			{% else %}
			Contact
			{% endif %}
		</h2>
		<p>
			{% if lang == "ru" %}
			Связаться со мной можно по электронной почты:
			{% elif lang == "es" %}
			Si quieres contactarme, puedes enviarme un correo electrónico a la
			siguiente dirección:
			{% else %}
			If you want to contact me, you can do so by email at:
			{% endif %}
  			<a href="mailto:yps@yaroslavps.com">yps@yaroslavps.com</a>
		</p>
		<p>
			{% if lang == "ru" %}
			Если вы пользуетесь такими сервисами как gmail, mail.ru или другими
			крупными провайдерами из этого разряда, то мой ответ может попасть в
			спам. Если вы хотите быть полностью уверенными что вы получите мой
			ответ, добавьте мой адрес в белый список.
			{% elif lang == "es" %}
			Una pequeña nota para aquellos que usan servicios como gmail,
			outlook u otros proveedores similares. Mi respuesta de email puede
			llegar a su bandeja de espam. Si quieres estar completamente seguro
			de recibir mi respuesta, agrega mi dirección a tu lista blanca.
			{% else %}
			A little note for those using services like gmail, outlook, or any
			other big provider like that. My email response might end up in your
			spam folder, so you might want to check that. If you want to make
			100% sure to receive my reponse, the best option is to add my
			address to your whitelist.
			{% endif %}
		</p>
		<p>
			{% if lang == "ru" %}
			PGP-ключ:
			{% elif lang == "es" %}
			Llave de PGP:
			{% else %}
			PGP key: 
			{% endif %}
			<a href="https://www.yaroslavps.com/files/yaroslavpub.gpg">BD900E5D624046DC</a>
		</p>
		<h2>{{ trans(key="other_links", lang=lang) }}</h2>
		<div class="nav-container">
			{% if lang == "en" %}
			<a href="/donate" title="Leave a tip"><span class="icon"><img alt="btc-icon" src="/svg/icons/btc.svg"/></span> Leave a tip</a>
			{% elif lang == "es" %}
			<a href="/es/donate" title="Dejar propina"><span class="icon"><img alt="btc-icon" src="/svg/icons/btc.svg"/></span> Dejar propinar</a>
			{% elif lang == "ru" %}
			<a href="/ru/donate" title="Оставить чайвые"><span class="icon"><img alt="btc-icon" src="/svg/icons/btc.svg"/></span> Оставить чайвые</a>
			{% endif %}
			<a href="https://git.yaroslavps.com/" title="Git server"><span class="icon"><img alt="git-icon" src="/svg/icons/git.svg"/></span> Git server</a>
			<a href="https://github.com/Yaroslav-95" title="GitHub"><span class="icon"><img alt="github-icon" src="/svg/icons/github.svg"/></span> Github</a>
			<a href="https://sr.ht/~yaroslav/" title="sourcehut"><span class="icon"><img alt="srht-icon" src="/svg/icons/srht.svg"/></span> sourcehut</a>
		</div>
		<hr>
		<div class="nav-container">
			<p>
			The text content in this site is
			<a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>,
			the photos are under
			<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a>.
			</p>
			<p>
			© 2018—2022 Yaroslav de la Peña Smirnov.
			</p>
		</div>
	</div>
{% endblock %}