/
base.tmpl
87 lines (81 loc) · 2.9 KB
/
base.tmpl
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
{# -*- coding: utf-8 -*- #}
{% import 'base_helper.tmpl' as base with context %}
{% import 'bootstrap_helper.tmpl' as bootstrap with context %}
{% import 'annotation_helper.tmpl' as notes with context %}
{{ set_locale(lang) }}
<!DOCTYPE html>
<html
{% if comment_system == 'facebook' %}
xmlns:fb="http://ogp.me/ns/fb#"
{% endif %}
lang="{{ lang }}">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ bootstrap.html_head() }}
{% block extra_head %}
{% endblock %}
{% if annotations and post and not post.meta('noannotations') %}
{{ notes.css() }}
{% elif not annotations and post and post.meta('annotations') %}
{{ notes.css() }}
{% endif %}
{{ extra_head_data }}
</head>
<body>
<!-- Menubar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid"><!-- This keeps the margins nice -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ abs_link('/') }}">{{ blog_title }}</a>
</div><!-- /.navbar-header -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
{{ bootstrap.html_navigation_links() }}
</ul>
{% if search_form %}
{{ search_form }}
{% endif %}
<ul class="nav navbar-nav navbar-right">
{% block belowtitle %}
{% if translations|length > 1 %}
<li>{{ bootstrap.html_translations() }}</li>
{% endif %}
{% endblock %}
{% if show_sourcelink %}
{% block sourcelink %}{% endblock %}
{% endif %}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<!-- End of Menubar -->
<div class="container">
<div class="body-content">
<!--Body content-->
<div class="row">
{% block content %}{% endblock %}
</div>
<!--End of body content-->
<footer>
{{ content_footer }}
</footer>
</div>
</div>
{{ bootstrap.late_load_js() }}
{{ base.html_social() }}
<script type="text/javascript">jQuery("a.image-reference").colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
{% block extra_js %}{% endblock %}
{% if annotations and post and not post.meta('noannotations') %}
{{ notes.code() }}
{% elif not annotations and post and post.meta('annotations') %}
{{ notes.code() }}
{% endif %}
{{ body_end }}
</body>
</html>