Mercurial > libervia-web
diff libervia/pages/u/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 | 469d0de8da0e |
children | b2d067339de3 |
line wrap: on
line diff
--- a/libervia/pages/u/page_meta.py Sun Jul 14 17:25:53 2019 +0200 +++ b/libervia/pages/u/page_meta.py Fri Jul 19 18:01:25 2019 +0200 @@ -33,6 +33,7 @@ # if URL is parsed here, we'll have atom.xml available and we need to # add the link to the page atom_url = self.getSubPageURL(request, u'user_blog_feed_atom') + request.template_data[u'atom_url'] = atom_url request.template_data.setdefault(u'links', []).append({ u"href": atom_url, u"type": "application/atom+xml",