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/post_header.tmpl | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 themes/erdgeist/templates/post_header.tmpl (limited to 'themes/erdgeist/templates/post_header.tmpl') diff --git a/themes/erdgeist/templates/post_header.tmpl b/themes/erdgeist/templates/post_header.tmpl new file mode 100644 index 0000000..456c207 --- /dev/null +++ b/themes/erdgeist/templates/post_header.tmpl @@ -0,0 +1,53 @@ +## -*- coding: utf-8 -*- +<%namespace name="helper" file="post_helper.tmpl"/> +<%namespace name="comments" file="comments_helper.tmpl"/> + +<%def name="html_title()"> +%if title and not post.meta('hidetitle'): +

${post.title()|h} + % if post.meta('subtitle'): +– ${post.meta('subtitle')} + %endif +

+%endif + + +<%def name="html_translations(post)"> + % if len(post.translated_to) > 1: +
+

${messages("Also available in:")}

+ % for langname in translations.keys(): + % if langname != lang and post.is_translation_available(langname): +

${messages("LANGUAGE", langname)}

+ % endif + % endfor +
+ % endif + + +<%def name="html_sourcelink()"> + % if show_sourcelink: +

${messages("Source")}

+ % endif + + +<%def name="html_post_header()"> +
+ ${html_title()} + + ${html_translations(post)} +
+ -- cgit v1.2.3