From daf20dd652f9294273c1110f60ff4da6d99f67c5 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Tue, 26 May 2020 22:45:15 +0000 Subject: Commit preview bundle --- themes/ccc/templates/post_header.tmpl | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 themes/ccc/templates/post_header.tmpl (limited to 'themes/ccc/templates/post_header.tmpl') diff --git a/themes/ccc/templates/post_header.tmpl b/themes/ccc/templates/post_header.tmpl new file mode 100644 index 00000000..f13ec488 --- /dev/null +++ b/themes/ccc/templates/post_header.tmpl @@ -0,0 +1,59 @@ +## -*- 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}

+%endif + + +<%def name="html_translations(post)"> + % if len(post.translated_to) > 1: + % for langname in sorted(translations): + % if langname != lang and post.is_translation_available(langname): +
+ ${messages("Also available in:", 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