lissarchive-website/themes/custom/templates/index.tmpl

64 lines
2.5 KiB
Cheetah
Raw Normal View History

2017-05-04 22:53:52 +00:00
## -*- coding: utf-8 -*-
<%namespace name="helper" file="index_helper.tmpl"/>
2019-01-18 22:07:39 +00:00
<%namespace name="math" file="math_helper.tmpl"/>
2017-05-04 22:53:52 +00:00
<%namespace name="comments" file="comments_helper.tmpl"/>
2019-01-18 22:07:39 +00:00
<%namespace name="pagination" file="pagination_helper.tmpl"/>
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl" import="*"/>
2017-05-04 22:53:52 +00:00
<%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
2019-01-18 22:07:39 +00:00
${math.math_styles_ifposts(posts)}
2017-05-04 22:53:52 +00:00
</%block>
<%block name="content">
2019-01-18 22:07:39 +00:00
<%block name="content_header">
${feeds_translations.translation_link(kind)}
</%block>
2017-05-04 22:53:52 +00:00
% if 'main_index' in pagekind:
${front_index_header}
% endif
2019-01-18 22:07:39 +00:00
% if page_links:
${pagination.page_navigation(current_page, page_links, prevlink, nextlink, prev_next_links_reversed)}
% endif
2017-05-04 22:53:52 +00:00
<div class="postindex">
% for post in posts:
2019-01-18 22:07:39 +00:00
<article class="h-entry post-${post.meta('type')}" itemscope="itemscope" itemtype="http://schema.org/Article">
2017-05-04 22:53:52 +00:00
<header>
2019-01-18 22:07:39 +00:00
<h1 class="p-name entry-title"><a href="${post.permalink()}" class="u-url">${post.title()|h}</a></h1>
2017-05-04 22:53:52 +00:00
<div class="metadata">
2019-01-18 22:07:39 +00:00
<p class="byline author vcard"><span class="byline-name fn" itemprop="author">
% if author_pages_generated:
<a href="${_link('author', post.author())}">${post.author()|h}</a>
% else:
${post.author()|h}
2017-05-04 22:53:52 +00:00
% endif
2019-01-18 22:07:39 +00:00
</span></p>
<p class="dateline">
<time class="published dt-published" datetime="${post.formatted_date('webiso')}" itemprop="datePublished" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time>
% if post.updated and post.updated != post.date:
<span class="updated"> (${messages("updated")}
<time class="dt-updated" datetime="${post.formatted_updated('webiso')}" itemprop="dateUpdated" title="${post.formatted_updated(date_format)|h}">${post.formatted_updated(date_format)|h}</time>)</span>
% endif
</p>
2017-05-04 22:53:52 +00:00
</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()}
2019-01-18 22:07:39 +00:00
${math.math_scripts_ifposts(posts)}
2017-05-04 22:53:52 +00:00
</%block>