aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/base.html
blob: b37315c9b31e6f4d0ce73811b7a1ed5177f08ebe (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
{% 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>
			{% elif lang == "es" %}
			¿Dudas, preguntas? Envíame un correo electrónico a
			<a href="yps@yaroslavps.com">yps@yaroslavps.com</a>
			{% else %}
			Have any questions? Send me an email at
			<a href="yps@yaroslavps.com">yps@yaroslavps.com</a>
			{% endif %}
			</p>
		</div>
	</body>
</html>