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

28 lines
1.5 KiB
Cheetah

## -*- coding: utf-8 -*-
<%block name="content">
<!-- Begin post-list ${post_list_id} -->
<div id="${post_list_id}" class="post-list">
%if posts:
<ul class="post-list list-unstyled">
% for post in posts:
<li class="post-list-item">
<h1><a href="${post.permalink(lang)}">${post.title(lang)|h}</a></h1><p class="dateline">
<div class="metadata">
<p><a href="${post.permalink()}" rel="bookmark"><time class="published dt-published" datetime="${post.formatted_date('webiso')}" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time></a></p>
<p><a href="mailto:?subject=I saw this and thought of you!&body=${post.title()}; ${post.meta('link')}" onclick="ga('send', 'social', 'email', 'share', ${post.meta('link')}); return true;">Email this post</a></p>
<p><a href="https://twitter.com/share?url=${post.permalink()});text=${post.title()}, ${post.meta('link')}" onclick="ga('send', 'social', 'Twitter', 'tweet', ${post.permalink()}); return true;" target="_blank">Tweet this post</a></p>
</div>
%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
</li>
% endfor
</ul>
%endif
</div>
<!-- End post-list ${post_list_id} -->
</%block>