comparison default/blog/atom.xml @ 98:2dd56fd2e9c9

blog/atom.xml: truncate title at 80 characters instead of 40
author Goffi <goffi@goffi.org>
date Sun, 21 Jan 2018 10:09:05 +0100
parents e8955d01ad0c
children 81f4ba3b121b
comparison
equal deleted inserted replaced
97:e8955d01ad0c 98:2dd56fd2e9c9
15 {% for item in items %} 15 {% for item in 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(40, 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'/>
24 <id>{{item.uri}}</id> 24 <id>{{item.uri}}</id>
25 <updated>{{item.updated|date_fmt('iso')}}</updated> 25 <updated>{{item.updated|date_fmt('iso')}}</updated>