44 lines
No EOL
1.4 KiB
Cheetah
44 lines
No EOL
1.4 KiB
Cheetah
## -*- 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'):
|
|
<h1 class="p-name post-title" itemprop="headline name">${post.title()|h}</h1>
|
|
%endif
|
|
</%def>
|
|
|
|
<%def name="html_sourcelink()">
|
|
% if show_sourcelink:
|
|
<p class="sourceline"><a href="${post.source_link()}" class="sourcelink">${messages("Source")}</a></p>
|
|
% endif
|
|
</%def>
|
|
|
|
<%def name="html_post_header()">
|
|
<header>
|
|
<h1 class="post-title">
|
|
${html_title()}
|
|
</h1>
|
|
</header>
|
|
<p class="dateline post-date">${post.date.strftime("%d %B %Y")}</time></p>
|
|
% if post.meta('link'):
|
|
<p class="linkline"><a href="${post.meta('link')}">${messages("Original site")}</a></p>
|
|
% endif
|
|
</div>
|
|
${html_translations(post)}
|
|
</%def>
|
|
|
|
|
|
|
|
<%def name="html_translations(post)">
|
|
% if len(post.translated_to) > 1:
|
|
<div class="metadata posttranslations translations">
|
|
<h3 class="posttranslations-intro">${messages("Also available in:")}</h3>
|
|
% for langname in sorted(translations):
|
|
% if langname != lang and post.is_translation_available(langname):
|
|
<p><a href="${post.permalink(langname)}" rel="alternate" hreflang="${langname}">${messages("LANGUAGE", langname)}</a></p>
|
|
% endif
|
|
% endfor
|
|
</div>
|
|
% endif
|
|
</%def> |