From 23f0e1561767dd8a396188e317bae5920d171ea8 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 16 Aug 2015 16:38:25 +0200 Subject: Initial import of my nikola website --- themes/erdgeist/templates/base_helper.tmpl | 168 +++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 themes/erdgeist/templates/base_helper.tmpl (limited to 'themes/erdgeist/templates/base_helper.tmpl') diff --git a/themes/erdgeist/templates/base_helper.tmpl b/themes/erdgeist/templates/base_helper.tmpl new file mode 100644 index 0000000..bec4b78 --- /dev/null +++ b/themes/erdgeist/templates/base_helper.tmpl @@ -0,0 +1,168 @@ +## -*- coding: utf-8 -*- + +<%namespace name="notes" file="annotation_helper.tmpl" import="*" /> +<%def name="html_headstart()"> + + + + + %if description: + + %endif + + ${title|striphtml} | ${blog_title|striphtml} + + ${html_stylesheets()} + ${html_feedlinks()} + %if permalink: + + %endif + + %if favicons: + %for name, file, size in favicons: + + %endfor + %endif + + % if comment_system == 'facebook': + + % endif + + %if prevlink: + + %endif + %if nextlink: + + %endif + + ${mathjax_config} + %if use_cdn: + + %else: + + %endif + + ${extra_head_data} + + +<%def name="late_load_js()"> + %if use_bundles: + %if use_cdn: + + + + %else: + + %endif + %else: + %if use_cdn: + + + %else: + + + + + %endif + + %endif + %if colorbox_locales[lang]: + + %endif + ${social_buttons_code} + + + +<%def name="html_stylesheets()"> + %if use_bundles: + %if use_cdn: + + + %else: + + %endif + %else: + %if use_cdn: + + %else: + + %endif + + + + + %if has_custom_css: + + %endif + %endif + % if annotations and post and not post.meta('noannotations'): + ${notes.css()} + % elif not annotations and post and post.meta('annotations'): + ${notes.css()} + % endif + + +<%def name="html_navigation_links()"> + %for url, text, icon in navigation_links[lang]: + % if isinstance(url, tuple): +
  • + %else: +
  • + %endif + % endif + %endfor + + +<%def name="html_feedlinks()"> + %if rss_link: + ${rss_link} + %elif generate_rss: + %if len(translations) > 1: + %for language in translations: + + %endfor + %else: + + %endif + %endif + + +<%def name="html_translations()"> + %for langname in translations.keys(): + %if langname != lang: +
  • ${messages("LANGUAGE", langname)}
  • + %endif + %endfor + -- cgit v1.2.3