on master help sign in
Merge pull request #137 from matildepark/rss-encoding

Disabling URL encoding of permalinks in RSS feed

commitfa555af0581903dda28c8fef5be885125103e283 authorMorgan Sutherland <msutherl@users.noreply.github.com> dateWed 3 Jul 2019, 13:50 (7 years ago) parentd6e3f71660a0b2
1 file changed+21
templates/rss.xml+21
templates/rss.xmlnew file+21
@@ -0,0 +1,21 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
3+ <channel>
4+ <title>{{ config.title }}</title>
5+ <link>{{ config.base_url | safe }}</link>
6+ <description>{{ config.description }}</description>
7+ <generator>Zola</generator>
8+ <language>{{ config.default_language }}</language>
9+ <atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
10+ <lastBuildDate>{{ last_build_date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
11+ {% for page in pages %}
12+ <item>
13+ <title>{{ page.title }}</title>
14+ <pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
15+ <link>{{ page.permalink | safe }}</link>
16+ <guid>{{ page.permalink | safe }}</guid>
17+ <description>{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}</description>
18+ </item>
19+ {% endfor %}
20+ </channel>
21+</rss>