diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-05-03 03:06:50 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-05-03 12:09:27 +0300 |
commit | 3a3424774944a421e1b93cbaf533a3500a4d613c (patch) | |
tree | 8780bec2bbacde34cf861b7cd4dc11f6f07e813f /site-src/themes/hack/templates/base.tmpl | |
parent | ac8a32e855b078e137fe5de4c2bbf9628c004532 (diff) | |
download | ck-3a3424774944a421e1b93cbaf533a3500a4d613c.tar.gz ck-3a3424774944a421e1b93cbaf533a3500a4d613c.tar.bz2 ck-3a3424774944a421e1b93cbaf533a3500a4d613c.zip |
add site and .gitignore
Diffstat (limited to 'site-src/themes/hack/templates/base.tmpl')
-rw-r--r-- | site-src/themes/hack/templates/base.tmpl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/site-src/themes/hack/templates/base.tmpl b/site-src/themes/hack/templates/base.tmpl new file mode 100644 index 0000000..b0f2c4e --- /dev/null +++ b/site-src/themes/hack/templates/base.tmpl @@ -0,0 +1,38 @@ +## -*- coding: utf-8 -*- +<%namespace name="base" file="base_helper.tmpl" import="*"/> +<%namespace name="header" file="base_header.tmpl" import="*"/> +<%namespace name="footer" file="base_footer.tmpl" import="*"/> +<%namespace name="annotations" file="annotation_helper.tmpl"/> +${set_locale(lang)} +${base.html_headstart()} +<%block name="extra_head"> +### Leave this block alone. +</%block> +${template_hooks['extra_head']()} +</head> +% if not HACK_VARIANT: + <body class="hack"> +% elif HACK_VARIANT == 'dark': + <body class="hack dark"> +% elif HACK_VARIANT == 'dark-grey': + <body class="hack dark-grey"> +% elif HACK_VARIANT == 'solarized-dark': + <body class="hack solarized-dark"> +% elif HACK_VARIANT == 'standard': + <body class="hack standard"> +% endif + +<a href="#content" class="sr-only sr-only-focusable">${messages("Skip to main content")}</a> + <div id="container"> + ${header.html_header()} + <main id="content"> + <%block name="content"></%block> + </main> + ${footer.html_footer()} + </div> + ${base.late_load_js()} + <%block name="extra_js"></%block> + ${body_end} + ${template_hooks['body_end']()} +</body> +</html> |