Mercurial > libervia-web
changeset 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 | d2e2bf14f2e2 |
children | 584e29d9510a |
files | libervia/pages/blog/view/page_meta.py libervia/pages/u/page_meta.py |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/pages/blog/view/page_meta.py Sun Jul 14 17:25:53 2019 +0200 +++ b/libervia/pages/blog/view/page_meta.py Fri Jul 19 18:01:25 2019 +0200 @@ -101,6 +101,7 @@ filter_kw, SubPage(u'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",
--- 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",