summaryrefslogtreecommitdiff
path: root/themes/ccc/templates/base.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/ccc/templates/base.tmpl')
-rw-r--r--themes/ccc/templates/base.tmpl74
1 files changed, 74 insertions, 0 deletions
diff --git a/themes/ccc/templates/base.tmpl b/themes/ccc/templates/base.tmpl
new file mode 100644
index 00000000..1a98780b
--- /dev/null
+++ b/themes/ccc/templates/base.tmpl
@@ -0,0 +1,74 @@
1## -*- coding: utf-8 -*-
2<%namespace name="base" file="base_helper.tmpl" import="*" />
3<%namespace name="notes" file="annotation_helper.tmpl" import="*" />
4<%namespace name="static_footer" file="static_footer.tmpl" import="*" />
5${set_locale(lang)}
6${base.html_headstart()}
7<%block name="extra_head">
8### Leave this block alone.
9</%block>
10${template_hooks['extra_head']()}
11</head>
12<body>
13<a href="#content" class="sr-only sr-only-focusable">${messages("Skip to main content")}</a>
14
15<!-- Menubar -->
16
17<nav class="navbar navbar-expand-md static-top mb-4
18% if theme_config.get('navbar_light'):
19navbar-light bg-light
20% else:
21navbar-dark bg-dark
22% endif
23">
24 <div class="container"><!-- This keeps the margins nice -->
25 <a class="navbar-brand" href="${abs_link(_link("root", None, lang))}">
26 %if logo_url:
27 <img src="${logo_url}" alt="${blog_title|h}" id="logo" class="d-inline-block align-top">
28 %endif
29
30 % if show_blog_title:
31 <span id="blog-title">${blog_title|h}</span>
32 % endif
33 </a>
34 %if search_form:
35 ${search_form}
36 %endif
37 </div><!-- /.container -->
38</nav>
39
40<!-- End of Menubar -->
41
42<div class="container" id="content" role="main">
43 <div class="body-content">
44 <!--Body content-->
45 ${template_hooks['page_header']()}
46 <%block name="extra_header"></%block>
47 <%block name="content"></%block>
48 <!--End of body content-->
49
50 ${static_footer.static_footer()}
51 </div>
52</div>
53
54${base.late_load_js()}
55 %if date_fanciness != 0:
56 <!-- fancy dates -->
57 <script>
58 moment.locale("${momentjs_locales[lang]}");
59 fancydates(${date_fanciness}, ${js_date_format});
60 </script>
61 <!-- end fancy dates -->
62 %endif
63 <%block name="extra_js"></%block>
64 <script>
65 baguetteBox.run('div#content', {
66 ignoreClass: 'islink',
67 captions: function(element) {
68 return element.getElementsByTagName('img')[0].alt;
69 }});
70 </script>
71${body_end}
72${template_hooks['body_end']()}
73</body>
74</html>