1234567891011121314151617181920212223242526272829303132333435363738394041 |
- ## -*- 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 entry-title" itemprop="headline name"><a href="${post.permalink()}" class="u-url">${title|h}</a></h1>
- %endif
- </%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 translations.keys():
- % 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>
- <%def name="html_sourcelink()">
- % if show_sourcelink:
- <p class="sourceline"><a href="${post.source_link()}" id="sourcelink">${messages("Source")}</a></p>
- % endif
- </%def>
- <%def name="html_post_header()">
- <header>
- ${html_title()}
- <small>
- <span class="dateline">Posted: <a href="${post.permalink()}" rel="bookmark"><time class="published dt-published" datetime="${post.date.isoformat()}" itemprop="datePublished" title="${post.formatted_date(date_format)}">${post.formatted_date(date_format)}</time></a></span>
- |
- More posts about
- ${helper.html_tags(post)}
- </small>
- ${html_translations(post)}
- </header>
- </%def>
|