aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
blob: 9c8fa4665a8994ac2972fac61c569262a2b29390 (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
{#
Base full page template, which all other page templates should extend.

Blocks:
	content:
		Primary content of page, will be placed within the <body/> tag.

Parameters:
	path_base:
		Base path on which the page will be uhoetans

	breadcrumbs:
		An optional list of breadcrumb items.
#}
<!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link type="text/css" rel="stylesheet" href="{{ path_base }}/static/style.css"/>
		<script src="{{ path_base }}/tabs.js"></script>
		<noscript>
			<style>
.noscript {
	display: initial;
}

.yesscript {
	display: none;
}
			</style>
		</noscript>
	</head>
	<body>
		<header>
			{% if breadcrumbs %}
				<nav>
					<ul class="breadcrumb">
						{%- for item in breadcrumbs.crumbs -%}
							<li><a href="{{ path_base }}{{ item.ref }}">{{ item.text }}</a></li>
						{%- endfor -%}
						<li>{{ breadcrumbs.final }}</li>
					</ul>
				</nav>
			{% endif %}
		</header>
		<div id="page-root">
			<aside id="left-sidebar" class="sidebar">{% block left_sidebar %}{% endblock %}</aside>
			<main>{% block content %}{% endblock %}</main>
			<aside id="right-sidebar" class="sidebar">{% block right_sidebar %}{% endblock %}</aside>
		</div>
	</body>
</html>
{# ft: jinja #}