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

29 lines
1.5 KiB
Cheetah
Raw Normal View History

## -*- 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">
2018-03-05 23:04:28 +00:00
<p class="dateline"><time class="published dt-published" datetime="${post.formatted_date('webiso')}" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time></p>
2019-01-18 22:07:39 +00:00
<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;"><i class="far fa-envelope"></i></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"><i class="fab fa-twitter"></i></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} -->
2018-03-05 23:04:28 +00:00
</%block>