2016-08-17 16:57:00 +00:00
|
|
|
## -*- 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">${post.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 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>
|
|
|
|
|
|
|
|
<%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>
|
|
|
|
<a href="${post.meta('link')}" id="sourcelink"><img src="../../images/github.png" height="5%" width="5%" style="float:right;"></a>
|
|
|
|
${html_title()}
|
|
|
|
<div class="metadata">
|
|
|
|
<p class="byline author vcard"><span class="byline-name fn">
|
|
|
|
% if author_pages_generated:
|
|
|
|
<a href="${_link('author', post.author())}">${post.author()|h}</a>
|
|
|
|
% else:
|
2016-08-17 21:48:41 +00:00
|
|
|
<a href="../../resume">${post.author()|h}</a>
|
2016-08-17 16:57:00 +00:00
|
|
|
% endif
|
|
|
|
</span></p>
|
|
|
|
<p class="dateline"><a href="${post.permalink()}" rel="bookmark"><time class="published dt-published" datetime="${post.formatted_date('webiso')}" itemprop="datePublished" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time></a></p>
|
|
|
|
% if not post.meta('nocomments') and site_has_comments:
|
|
|
|
<p class="commentline">${comments.comment_link(post.permalink(), post._base_path)}
|
|
|
|
% endif
|
|
|
|
${html_sourcelink()}
|
|
|
|
%if post.description():
|
|
|
|
<meta name="description" itemprop="description" content="${post.description()|h}">
|
|
|
|
%endif
|
|
|
|
</div>
|
|
|
|
${html_translations(post)}
|
|
|
|
</header>
|
|
|
|
</%def>
|