add rss in light theme
This commit is contained in:
parent
7c8d17fbcb
commit
d29a75fbba
@ -5,19 +5,9 @@
|
||||
<description>{{ settings.sub_title }}</description>
|
||||
<link>{{ settings.url }}</link>
|
||||
<atom:link href="{{ settings.url }}/feed.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
{% for gallery in galleries %}
|
||||
{% set absolute_url = settings.url + "/" + gallery.link %}
|
||||
<item>
|
||||
<title>{{ gallery.title }}</title>
|
||||
<link>{{ absolute_url }}</link>
|
||||
<guid>{{ gallery.link }}</guid>
|
||||
{% if gallery.sub_title %}
|
||||
<description>{{ gallery.sub_title }}</description>
|
||||
{% endif %}
|
||||
<pubDate>{{ gallery.date }}</pubDate>
|
||||
</item>
|
||||
{% set absolute_url = settings.url + "/" %}
|
||||
{% include "item.html" %}
|
||||
{% endfor %}
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
|
15
prosopopee/themes/light/templates/item.html
Normal file
15
prosopopee/themes/light/templates/item.html
Normal file
@ -0,0 +1,15 @@
|
||||
{% set absolute_url = absolute_url+ gallery.link+"/" %}
|
||||
<item>
|
||||
<title>{{ gallery.title }}</title>
|
||||
<link>{{ absolute_url }}</link>
|
||||
<guid>{{ gallery.link }}</guid>
|
||||
{% if gallery.sub_title %}
|
||||
<description>{{ gallery.sub_title }}</description>
|
||||
{% endif -%}
|
||||
<pubDate>{{ gallery.date }}</pubDate>
|
||||
</item>
|
||||
{% for sub_gallery in gallery.sub_gallery %}
|
||||
{% with gallery=sub_gallery %}
|
||||
{% include "item.html" %}
|
||||
{% endwith %}
|
||||
{% endfor %}
|
Loading…
x
Reference in New Issue
Block a user