www.duckland.org/themes/blogtxt/templates/post.tmpl
2015-06-09 22:50:31 -05:00

38 lines
1.4 KiB
Cheetah

## -*- coding: utf-8 -*-
<%namespace name="helper" file="post_helper.tmpl"/>
<%namespace name="pheader" file="post_header.tmpl"/>
<%namespace name="comments" file="comments_helper.tmpl"/>
<%inherit file="base.tmpl"/>
<%block name="extra_head">
${helper.twitter_card_information(post)}
% if post.meta('keywords'):
<meta name="keywords" content="${post.meta('keywords')|h}">
% endif
</%block>
<%block name="content">
<div id="post-${post.meta('slug')}" class="post hfeed">
<h2 class="entry-title"><a href='${permalink}'>${title}</a></h2>
<div class="entry-content">
${post.text()}
</div>
<div class="archive-meta">
${messages("Posted:")} <time class="published" datetime="${post.date.isoformat()}">${post.formatted_date(date_format)}</time>
<span class="meta-sep">|</span>
${pheader.html_translations(post)}
<%block name="sourcelink">
% if not post.meta('password'):
<a href="${post.source_link()}" id="sourcelink">${messages("Source")}</a>
% endif
</%block>
${helper.html_tags(post)}
<span class="entry-tags">
</span>
</div>
</div>
${helper.html_pager(post)}
% if not post.meta('nocomments'):
${comments.comment_form(post.permalink(absolute=True), post.title(), post.base_path)}
% endif
${helper.mathjax_script(post)}
</div>
</%block>