Mercurial > libervia-templates
changeset 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 | 609c66552ba0 |
files | default/blog/atom.xml |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/default/blog/atom.xml Fri Jan 19 18:20:48 2018 +0100 +++ b/default/blog/atom.xml Sun Jan 21 10:09:05 2018 +0100 @@ -17,7 +17,7 @@ {% if item.title_xhtml %} <title type='xhtml'>{{item.title_xhtml}}</title> {% else %} - <title>{{item.title|default(item.content|truncate(40, True, '…'))}}</title> + <title>{{item.title|default(item.content|truncate(80, True, '…'), True)}}</title> {% endif %} <link href='{{items_http_uri[item.id]}}' type='text/html' rel='alternate'/> <link href='{{item.uri}}' type='application/atom+xml' rel='alternate'/>