mirror of
https://gitlab.com/openlp/website.git
synced 2024-11-01 00:57:03 +00:00
60 lines
2.1 KiB
Cheetah
60 lines
2.1 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">
|
|
${parent.extra_head()}
|
|
% if post.meta('keywords'):
|
|
<meta name="keywords" content="${post.meta('keywords')|h}">
|
|
% endif
|
|
%if post.description():
|
|
<meta name="description" itemprop="description" content="${post.description()}">
|
|
%endif
|
|
<meta name="author" content="${post.author()}">
|
|
%if post.prev_post:
|
|
<link rel="prev" href="${post.prev_post.permalink()[:-5]}" title="${post.prev_post.title()|h}" type="text/html">
|
|
%endif
|
|
%if post.next_post:
|
|
<link rel="next" href="${post.next_post.permalink()[:-5]}" title="${post.next_post.title()|h}" type="text/html">
|
|
%endif
|
|
% if post.is_draft:
|
|
<meta name="robots" content="noindex">
|
|
% endif
|
|
${helper.open_graph_metadata(post)}
|
|
${helper.twitter_card_information(post)}
|
|
${helper.meta_translations(post)}
|
|
</%block>
|
|
|
|
<%block name="content">
|
|
<article class="post-${post.meta('type')} h-entry hentry postpage col-xs-12 col-sm-12 col-md-12 col-lg-12" itemscope="itemscope" itemtype="http://schema.org/Article">
|
|
${pheader.html_post_header()}
|
|
<div class="e-content entry-content" itemprop="articleBody text">
|
|
${post.text()}
|
|
</div>
|
|
<aside class="postpromonav">
|
|
<nav>
|
|
${helper.html_tags(post)}
|
|
${helper.html_pager(post)}
|
|
</nav>
|
|
</aside>
|
|
% if not post.meta('nocomments') and site_has_comments:
|
|
<section class="comments hidden-print">
|
|
<h2>${messages("Comments")}</h2>
|
|
${comments.comment_form(post.permalink(absolute=True)[:-5], post.title(), post._base_path)}
|
|
</section>
|
|
% endif
|
|
${helper.mathjax_script(post)}
|
|
</article>
|
|
${comments.comment_link_script()}
|
|
</%block>
|
|
|
|
<%block name="sourcelink">
|
|
% if show_sourcelink:
|
|
<li>
|
|
<a href="${post.source_link()}" id="sourcelink">${messages("Source")}</a>
|
|
</li>
|
|
% endif
|
|
</%block>
|