summaryrefslogtreecommitdiff
path: root/.templates/base.html
blob: bb584d421fa2584424a34aa36b0c36da8be78920 (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
<!DOCTYPE html>
<html>
<head>
	<title>
		{% block title_prefix -%}
			{% if 'wiki-name' in config %}{{ config['wiki-name']|e }} » {% endif %}
		{%- endblock %}
		{% block title -%}
			{{ title }}
		{%- endblock %}
	</title>

	<link
		rel='stylesheet'
		type='text/css'
		href='http://fonts.googleapis.com/css?family=Buenard:400,700&amp;subset=latin,latin-ext'>
	<link
		rel="stylesheet"
		type="text/css"
		href="{{ make_relative('/media/css/reset.css') }}">
	<link
		rel="stylesheet"
		type="text/css"
		href="{{ make_relative('/media/css/grimoire.css') }}">
</head>
<body>

<div id="shell">
	{% if crumbs %}
		<ol id="breadcrumbs">
			{% for name, href in crumbs %}
				<li class="crumb-{{ loop.index0 }} {% if loop.last %}last{% else %}not-last{% endif %}">
					{% if not href %}
						{{ name|e }}
					{% else %}
						<a href="{{ make_relative(href)|e }}">{{ name|e }}</a>
					{% endif %}
				</li>
			{% endfor %}
		</ol>
	{% endif %}

	{% block content %}
	{% endblock %}

	{% block footer %}
	<div id="footer">
		<p>Questions? Comments? Feedback? <a href="mailto:owen+blog@grimoire.ca">Email me</a>!</p>
		<p>
			{% if 'wiki-name' in config %}
				{{ config['wiki-name']|e }}{% endif %}
			Powered by <a href="http://markdoc.org/">Markdoc</a>.
			{% block scm_info %}
				<a href="https://bitbucket.org/ojacobson/grimoire.ca">See it on Bitbucket</a>.
			{% endblock %}
		</p>
	</div>
	{% endblock %}
</div>
</body>
</html>