Skip to content

Commit c828eec

Browse files
committed
Fix rss template
This commit fixes the rss fulltext template which was originally build under the assumption of zola 0.9.0 For 0.5.1 the template has to be in a different location and can't use `escape_xml` as that was introduced in later versions. This should do no harm because the links didn't contain xml in the first place.
1 parent be0e0c2 commit c828eec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

themes/hyde/templates/rss.xml renamed to templates/rss.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
33
<channel>
44
<title>{{ config.title }}</title>
5-
<link>{{ config.base_url | escape_xml | safe }}</link>
5+
<link>{{ config.base_url | safe }}</link>
66
<description>{{ config.description }}</description>
77
<generator>Zola</generator>
88
<language>{{ config.default_language }}</language>
@@ -12,8 +12,8 @@
1212
<item>
1313
<title>{{ page.title }}</title>
1414
<pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
15-
<link>{{ page.permalink | escape_xml | safe }}</link>
16-
<guid>{{ page.permalink | escape_xml | safe }}</guid>
15+
<link>{{ page.permalink | safe }}</link>
16+
<guid>{{ page.permalink | safe }}</guid>
1717
<description>{{ page.content }}</description>
1818
</item>
1919
{% endfor %}

0 commit comments

Comments
 (0)