/
newsfeed.html
20 lines (20 loc) · 900 Bytes
/
newsfeed.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<ul class="hfeed">
{% for entry in updates %}
{% with e = entry.parsed %}
<li class="hentry">
<h2 class="entry-title"><a href="{{ e.link }}" rel="bookmark">{{ e.title|entity_decode }}</a></h2>
<p class="entry-summary">{{ e.summary|strip_tags|entity_decode|truncatewords(50) }}</p>
<p class="entry-meta vcard">
{% trans authorlink='<cite class="author fn">{0}</cite>'|f(e.author)|safe,
entrydate='<time class="updated" datetime="{0}" title="{0}">{1}</time>'|f(
entry.last_published|datetime('%Y-%m-%d'), entry.last_published|datetime)|safe %}
Posted {{ entrydate }} by {{ authorlink }}
{% endtrans %}
{% if section_headers and entry.section %}
under <a href="{{ url(entry.section.short) }}" rel="tag">{{ entry.section.pretty }}</a>
{% endif %}
</p>
</li>
{% endwith %}
{% endfor %}
</ul>