From dc4904dd5f6be23e986877ead93419d376380724 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Sun, 16 Jun 2019 12:17:13 +0200 Subject: [PATCH] Update escaping with latest version of Tera --- components/templates/src/builtins/rss.xml | 6 +++--- components/templates/src/builtins/sitemap.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/templates/src/builtins/rss.xml b/components/templates/src/builtins/rss.xml index a67d003b..3d5e909d 100644 --- a/components/templates/src/builtins/rss.xml +++ b/components/templates/src/builtins/rss.xml @@ -2,7 +2,7 @@ {{ config.title }} - {{ config.base_url | safe | urlencode | safe }} + {{ config.base_url | urlencode | safe }} {{ config.description }} Zola {{ config.default_language }} @@ -12,8 +12,8 @@ {{ page.title }} {{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }} - {{ page.permalink | safe | urlencode | safe }} - {{ page.permalink | safe | urlencode | safe }} + {{ page.permalink | urlencode | safe }} + {{ page.permalink | urlencode | safe }} {% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %} {% endfor %} diff --git a/components/templates/src/builtins/sitemap.xml b/components/templates/src/builtins/sitemap.xml index 63e4f238..c789e3fc 100644 --- a/components/templates/src/builtins/sitemap.xml +++ b/components/templates/src/builtins/sitemap.xml @@ -2,7 +2,7 @@ {% for sitemap_entry in entries %} - {{ sitemap_entry.permalink | safe | urlencode | safe }} + {{ sitemap_entry.permalink | urlencode | safe }} {% if sitemap_entry.date %} {{ sitemap_entry.date }} {% endif %}