mirror of
https://gitlab.com/openlp/website.git
synced 2024-12-23 05:22:53 +00:00
47 lines
1.7 KiB
Cheetah
47 lines
1.7 KiB
Cheetah
|
## -*- coding: utf-8 -*-
|
||
|
<%namespace name="helper" file="index_helper.tmpl"/>
|
||
|
<%namespace name="comments" file="comments_helper.tmpl"/>
|
||
|
<%inherit file="base.tmpl"/>
|
||
|
|
||
|
<%block name="extra_head">
|
||
|
${parent.extra_head()}
|
||
|
% if posts and (permalink == '/' or permalink == '/' + index_file):
|
||
|
<link rel="prefetch" href="${posts[0].permalink()[:-5]}" type="text/html">
|
||
|
% endif
|
||
|
</%block>
|
||
|
|
||
|
<%block name="content">
|
||
|
<%block name="content_header"></%block>
|
||
|
<div class="postindex">
|
||
|
% for post in posts:
|
||
|
<article class="h-entry post-${post.meta('type')} col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
||
|
<header>
|
||
|
<h1 class="p-name entry-title"><a href="${post.permalink()[:-5]}" class="u-url">${post.title()|h}</a></h1>
|
||
|
<div class="metadata">
|
||
|
<p class="byline author vcard"><span class="byline-name fn">${post.author()}</span></p>
|
||
|
<time class="published dt-published" datetime="${post.date.isoformat()}" itemprop="datePublished" title="${post.formatted_date(date_format)}">
|
||
|
<em>${post.date.strftime('%A')}</em>
|
||
|
<strong>${post.date.strftime('%B')}</strong>
|
||
|
<span>${post.date.strftime('%-d')}</span>
|
||
|
</time>
|
||
|
% if not post.meta('nocomments') and site_has_comments:
|
||
|
<p class="commentline">${comments.comment_link(post.permalink()[:-5], post._base_path)}
|
||
|
% endif
|
||
|
</div>
|
||
|
</header>
|
||
|
%if index_teasers:
|
||
|
<div class="p-summary entry-summary">
|
||
|
${post.text(teaser_only=True)}
|
||
|
%else:
|
||
|
<div class="e-content entry-content">
|
||
|
${post.text(teaser_only=False)}
|
||
|
%endif
|
||
|
</div>
|
||
|
</article>
|
||
|
% endfor
|
||
|
</div>
|
||
|
${helper.html_pager()}
|
||
|
${comments.comment_link_script()}
|
||
|
${helper.mathjax_script(posts)}
|
||
|
</%block>
|