comparison sat_templates/templates/bulma/blog/atom.xml @ 264:2c282c244a3e

bulma (blog/atom.xml): fixed use of blog items
author Goffi <goffi@goffi.org>
date Sun, 02 Aug 2020 20:58:21 +0200
parents 0e69b5843c2f
children 7448aac005a1
comparison
equal deleted inserted replaced
263:878e7aee0e4a 264:2c282c244a3e
10 <link href='{{request_uri}}' type='application/atom+xml' rel='self'/> 10 <link href='{{request_uri}}' type='application/atom+xml' rel='self'/>
11 <link href='{{http_uri}}' type='text/html' rel='alternate'/> 11 <link href='{{http_uri}}' type='text/html' rel='alternate'/>
12 <link href='{{xmpp_uri}}' type='application/atom+xml' rel='alternate'/> 12 <link href='{{xmpp_uri}}' type='application/atom+xml' rel='alternate'/>
13 <id>{{xmpp_uri}}</id> 13 <id>{{xmpp_uri}}</id>
14 <updated>{{updated|date_fmt('iso')}}</updated> 14 <updated>{{updated|date_fmt('iso')}}</updated>
15 {% for item in items %} 15 {% for item in blog_items['items'] %}
16 <entry> 16 <entry>
17 {% if item.title_xhtml %} 17 {% if item.title_xhtml %}
18 <title type='xhtml'>{{item.title_xhtml}}</title> 18 <title type='xhtml'>{{item.title_xhtml}}</title>
19 {% else %} 19 {% else %}
20 <title>{{item.title|default(item.content|truncate(80, True, '…'), True)}}</title> 20 <title>{{item.title|default(item.content|truncate(80, True, '…'), True)}}</title>