36 lines
882 B
Cheetah
36 lines
882 B
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()}" type="text/html">
|
||
|
% endif
|
||
|
</%block>
|
||
|
|
||
|
<%block name="content">
|
||
|
<%block name="content_header"></%block>
|
||
|
<div class="posts">
|
||
|
% for post in posts:
|
||
|
<article class="post">
|
||
|
<header>
|
||
|
<h1 class="post-title"><a href="${post.permalink()}" class="u-url">${post.title()|h}</a></h1>
|
||
|
</header>
|
||
|
<div>
|
||
|
<span class="post-date">${post.date.strftime("%d %B %Y")}</span>
|
||
|
</div>
|
||
|
<br>
|
||
|
<div class="e-content entry-content">
|
||
|
${post.text(teaser_only=False)}
|
||
|
</div>
|
||
|
</article>
|
||
|
<br>
|
||
|
<hr>
|
||
|
<br>
|
||
|
% endfor
|
||
|
</div>
|
||
|
${helper.html_pager()}
|
||
|
${comments.comment_link_script()}
|
||
|
</%block>
|