~yaroslav/saucesource.cc

ref: c11d26e987ab24355e6f018e94bfc4372386f8ac saucesource.cc/templates/base.html -rw-r--r-- 2.0 KiB
c11d26e9Yaroslav de la Peña Smirnov Fix link to Zola repo 10 months ago
                                                                                
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
{% if lang != "en" %}
{% set url_prefix = "/" ~ lang ~ "/" %}
{% else %}
{% set url_prefix = "/" %}
{% endif %}
<!DOCTYPE html>
<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/main.css") }}">
	</head>
	<body>
		<div class="header-container">
			<div class="brand-container">
				<div class="brand">
					<a href="{{ url_prefix }}">{{ config.title }}</a>
				</div>
			</div>
			<div class="title-container">
				{% block h1title %}
				{% endblock %}
			</div>
			<nav class="navbar">
				<a href="{{ url_prefix }}">
					{{ trans(key="home", lang=lang) }}
				</a>
				<a href="{{ url_prefix }}recipes/">
					{{ trans(key="recipes", lang=lang) }}
				</a>
				<a href="{{ url_prefix }}recipes/archive">
					{{ trans(key="archive", lang=lang) }}
				</a>
				<a href="{{ url_prefix }}about/">
					{{ trans(key="about", lang=lang) }}
				</a>
				<a href="{{ url_prefix }}recipes/atom.xml">RSS</a>
			</nav>
		</div>
		<div class="body-container">
			{% block body %}
			{% endblock %}
		</div>
		<div class="footer-container">
			<hr>
			<p>
			<!-- TODO: do this programmaticaly -->
			{% if lang == "ru" %}
			Есть вопросы? Напиши мне на
			<a href="yps@yaroslavps.com">yps@yaroslavps.com</a>, или глянь в
			список рассылки
			<a href="https://lists.sr.ht/~yaroslav/saucesource.cc-comments">здесь</a>.
			{% elif lang == "es" %}
			¿Dudas, preguntas? Envíame un correo electrónico a
			<a href="yps@yaroslavps.com">yps@yaroslavps.com</a>, o hechale un
			vistazo a la lista de correo
			<a href="https://lists.sr.ht/~yaroslav/saucesource.cc-comments">aquí</a>.
			{% else %}
			Have any questions? Send me an email at
			<a href="yps@yaroslavps.com">yps@yaroslavps.com</a>, or checkout the
			comments mailing list 
			<a href="https://lists.sr.ht/~yaroslav/saucesource.cc-comments">here</a>.
			{% endif %}
			</p>
		</div>
	</body>
</html>