summaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base/templates/base.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/data/themes/base/templates/base.tmpl')
-rw-r--r--nikola/data/themes/base/templates/base.tmpl52
1 files changed, 16 insertions, 36 deletions
diff --git a/nikola/data/themes/base/templates/base.tmpl b/nikola/data/themes/base/templates/base.tmpl
index 8a90349..f587593 100644
--- a/nikola/data/themes/base/templates/base.tmpl
+++ b/nikola/data/themes/base/templates/base.tmpl
@@ -1,45 +1,25 @@
## -*- 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)}
-<!DOCTYPE html>
-<html
-%if comment_system == 'facebook':
-xmlns:fb="http://ogp.me/ns/fb#"
-%endif
-lang="${lang}">
-<head>
- ${base.html_head()}
- <%block name="extra_head">
- </%block>
- ${extra_head_data}
+${base.html_headstart()}
+<%block name="extra_head">
+### Leave this block alone.
+</%block>
+${template_hooks['extra_head']()}
</head>
<body>
- <h1 id="blog-title">
- <a href="${abs_link('/')}" title="${blog_title}" rel="home">${blog_title}</a>
- </h1>
- <%block name="belowtitle">
- %if len(translations) > 1:
- <small>
- ${messages("Also available in:")}&nbsp;
- ${base.html_translations()}
- </small>
- %endif
- </%block>
- <%block name="content"></%block>
- <small>${content_footer}</small>
- <!--Sidebar content-->
- <ul class="unstyled">
- %if license:
- <li>${license}
- %endif
- ${base.html_social()}
- ${base.html_navigation_links()}
- %if search_form:
- <li>${search_form}
- %endif
- </ul>
+ <div id="container">
+ ${header.html_header()}
+ <main id="content">
+ <%block name="content"></%block>
+ </main>
+ ${footer.html_footer()}
+ </div>
+ ${body_end}
+ ${template_hooks['body_end']()}
${base.late_load_js()}
- ${social_buttons_code}
</body>
</html>