Skip to content

Commit 967b046

Browse files
bors[bot]mqus
andauthored
Merge #86
86: Fix rss template r=jamesmunns a=mqus This commit fixes the rss fulltext template introduced in #75 which was originally build under the assumption of zola v0.9.0. For v0.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. Co-authored-by: Markus Richter <[email protected]>
2 parents be0e0c2 + c828eec commit 967b046

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)