www.donaldharper.com/themes/zen/templates/post.tmpl
2015-06-09 22:59:04 -05:00

39 lines
1.4 KiB
Cheetah

## -*- coding: utf-8 -*-
<%namespace name="arusahni" file="arusahni_helper.tmpl" import="*" />
<%namespace name="helper" file="post_helper.tmpl"/>
<%namespace name="comments" file="comments_helper.tmpl"/>
<%inherit file="base.tmpl"/>
<%block name="extra_head">
${parent.extra_head()}
% if post.meta('keywords'):
<meta name="keywords" content="${post.meta('keywords')|h}">
% endif
<meta name="author" content="${post.author()}">
${helper.open_graph_metadata(post)}
${helper.twitter_card_information(post)}
${helper.meta_translations(post)}
</%block>
<%block name="content">
<div class="post">
${arusahni.html_title()}
<div class="meta">
<div class="authordate">
<time class="timeago" datetime="${post.date.isoformat()}">${post.formatted_date(date_format)}</time>
${arusahni.html_translations(post)}
${arusahni.html_sourcelink()}
</div>
${arusahni.html_tags(post)}
</div>
<div class="body">
${post.text()}
</div>
${helper.html_pager(post)}
% if not post.meta('nocomments') and site_has_comments:
${comments.comment_form(post.permalink(absolute=True), post.title(), post._base_path)}
% endif
${helper.mathjax_script(post)}
</div>
${comments.comment_link_script()}
</%block>