comparison libervia/pages/blog/view/page_meta.py @ 1207:67ec22356457

pages (blog/view, u): added atom feed URL to "atom_url" in template
author Goffi <goffi@goffi.org>
date Fri, 19 Jul 2019 18:01:25 +0200
parents 0f37b65fe7c2
children b2d067339de3
comparison
equal deleted inserted replaced
1206:d2e2bf14f2e2 1207:67ec22356457
99 service, 99 service,
100 node, 100 node,
101 filter_kw, 101 filter_kw,
102 SubPage(u'blog_feed_atom'), 102 SubPage(u'blog_feed_atom'),
103 ) 103 )
104 request.template_data[u'atom_url'] = atom_url
104 request.template_data.setdefault(u'links', []).append({ 105 request.template_data.setdefault(u'links', []).append({
105 u"href": atom_url, 106 u"href": atom_url,
106 u"type": "application/atom+xml", 107 u"type": "application/atom+xml",
107 u"rel": "alternate", 108 u"rel": "alternate",
108 u"title": "{service}'s blog".format(service=service)}) 109 u"title": "{service}'s blog".format(service=service)})