From d29a75fbba76f2faa889dc5b704d3f4eab7d648b Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Fri, 4 Nov 2016 14:43:09 +0100 Subject: [PATCH] add rss in light theme --- prosopopee/themes/light/templates/feed.xml | 30 +++++++-------------- prosopopee/themes/light/templates/item.html | 15 +++++++++++ 2 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 prosopopee/themes/light/templates/item.html diff --git a/prosopopee/themes/light/templates/feed.xml b/prosopopee/themes/light/templates/feed.xml index ba5b2dd..cecd1af 100644 --- a/prosopopee/themes/light/templates/feed.xml +++ b/prosopopee/themes/light/templates/feed.xml @@ -1,23 +1,13 @@ - - {{ settings.title }} - {{ settings.sub_title }} - {{ settings.url }} - - - {% for gallery in galleries %} - {% set absolute_url = settings.url + "/" + gallery.link %} - - {{ gallery.title }} - {{ absolute_url }} - {{ gallery.link }} - {% if gallery.sub_title %} - {{ gallery.sub_title }} - {% endif %} - {{ gallery.date }} - - {% endfor %} - - + + {{ settings.title }} + {{ settings.sub_title }} + {{ settings.url }} + + {% for gallery in galleries %} + {% set absolute_url = settings.url + "/" %} + {% include "item.html" %} + {% endfor %} + diff --git a/prosopopee/themes/light/templates/item.html b/prosopopee/themes/light/templates/item.html new file mode 100644 index 0000000..0109eb1 --- /dev/null +++ b/prosopopee/themes/light/templates/item.html @@ -0,0 +1,15 @@ +{% set absolute_url = absolute_url+ gallery.link+"/" %} + +{{ gallery.title }} +{{ absolute_url }} +{{ gallery.link }} +{% if gallery.sub_title %} +{{ gallery.sub_title }} +{% endif -%} +{{ gallery.date }} + +{% for sub_gallery in gallery.sub_gallery %} +{% with gallery=sub_gallery %} +{% include "item.html" %} +{% endwith %} +{% endfor %}