This repository has been archived on 2023-06-11. You can view files and clone it, but cannot push or open issues or pull requests.
blog.lazkani.io-20200902-hi.../themes/custom-willy-theme/templates/base.tmpl
Elia el Lazkani b965d55590 Minor changes to the willy theme were made.
* Footer added
* Page padding changed for dark mode conformity
2020-09-01 10:21:33 +02:00

45 lines
1.4 KiB
Cheetah

{# -*- coding: utf-8 -*- #}
{% import 'base_helper.tmpl' as base with context %}
{% import 'base_menu.tmpl' as menu with context %}
{% import 'base_footer.tmpl' as footer with context %}
{{ set_locale(lang) }}
{# <html> tag is included by base.html_headstart #}
{{ base.html_headstart() }}
{% block extra_head %}
{# Leave this block alone. #}
{% endblock %}
{{ template_hooks['extra_head']() }}
</head>
<body>
{#<a href="#content" class="sr-only sr-only-focusable">{{ messages("Skip to main content") }}</a>#}
<input id="dark-mode" type="checkbox" />
<div class="theme">
<div class="layout">
{{ menu.html_header() }}
<main id="content" class="content">
{% block content %}{% endblock %}
{{ footer.html_footer() }}
</main>
</div>
</div>
{{ base.late_load_js() }}
{% if date_fanciness != 0 %}
<!-- fancy dates -->
<script>
luxon.Settings.defaultLocale = "{{ luxon_locales[lang] }}";
fancydates({{ date_fanciness }}, {{ luxon_date_format }});
</script>
<!-- end fancy dates -->
{% endif %}
{% block extra_js %}{% endblock %}
<script>
baguetteBox.run('div#content', {
ignoreClass: 'islink',
captions: function(element) {
return element.getElementsByTagName('img')[0].alt;
}});
</script>
{{ body_end }}
{{ template_hooks['body_end']() }}
</body>
</html>