diff options
Diffstat (limited to 'nikola/data/themes/base/templates/post.tmpl')
| -rw-r--r-- | nikola/data/themes/base/templates/post.tmpl | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nikola/data/themes/base/templates/post.tmpl b/nikola/data/themes/base/templates/post.tmpl new file mode 100644 index 0000000..fd6316d --- /dev/null +++ b/nikola/data/themes/base/templates/post.tmpl @@ -0,0 +1,41 @@ +## -*- coding: utf-8 -*- +<%namespace name="helper" file="post_helper.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 class="postbox"> + <div class="h-entry" itemscope="itemscope" itemtype="http://schema.org/Article"> + ${helper.html_title()} + <hr> + <small> + ${messages("Posted")}: <time class="published dt-published" datetime="${post.date.isoformat()}" itemprop="datePublished">${post.formatted_date(date_format)}</time> + ${helper.html_translations(post)} + ${helper.html_tags(post)} + | + <%block name="sourcelink"> + % if not post.meta('password'): + <a href="${post.source_link()}" id="sourcelink">${messages("Source")}</a> + % endif + </%block> + </small> + <hr> + <div class="e-content" itemprop="articleBody text"> + ${post.text()} + </div> + %if post.description(): + <meta content="${post.description()}" itemprop="description"> + %endif + </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> |
