comparison sat_templates/templates/bulma/blog/atom.xml @ 266:7448aac005a1

bulma (blog/atom.xml): fixed double escaping
author Goffi <goffi@goffi.org>
date Mon, 03 Aug 2020 08:44:50 +0200
parents 2c282c244a3e
children
comparison
equal deleted inserted replaced
265:ae365c036a58 266:7448aac005a1
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 blog_items['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|safe}}</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>
21 {% endif %} 21 {% endif %}
22 <link href='{{items_http_uri[item.id]}}' type='text/html' rel='alternate'/> 22 <link href='{{items_http_uri[item.id]}}' type='text/html' rel='alternate'/>
23 <link href='{{item.uri}}' type='application/atom+xml' rel='alternate'/> 23 <link href='{{item.uri}}' type='application/atom+xml' rel='alternate'/>
32 <category term="{{tag}}"/> 32 <category term="{{tag}}"/>
33 {% endfor %} 33 {% endfor %}
34 {% if item.content_xhtml %} 34 {% if item.content_xhtml %}
35 <content type='xhtml'> 35 <content type='xhtml'>
36 <div xmlns='http://www.w3.org/1999/xhtml'> 36 <div xmlns='http://www.w3.org/1999/xhtml'>
37 {{item.content_xhtml}} 37 {{item.content_xhtml|safe}}
38 </div> 38 </div>
39 </content> 39 </content>
40 {% else %} 40 {% else %}
41 <content type='text'> 41 <content type='text'>
42 {{item.content_txt}} 42 {{item.content_txt}}