Browse Source

Update escaping with latest version of Tera

index-subcmd
Vincent Prouillet 4 years ago
parent
commit
dc4904dd5f
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      components/templates/src/builtins/rss.xml
  2. +1
    -1
      components/templates/src/builtins/sitemap.xml

+ 3
- 3
components/templates/src/builtins/rss.xml View File

@@ -2,7 +2,7 @@
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>{{ config.title }}</title>
<link>{{ config.base_url | safe | urlencode | safe }}</link>
<link>{{ config.base_url | urlencode | safe }}</link>
<description>{{ config.description }}</description>
<generator>Zola</generator>
<language>{{ config.default_language }}</language>
@@ -12,8 +12,8 @@
<item>
<title>{{ page.title }}</title>
<pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
<link>{{ page.permalink | safe | urlencode | safe }}</link>
<guid>{{ page.permalink | safe | urlencode | safe }}</guid>
<link>{{ page.permalink | urlencode | safe }}</link>
<guid>{{ page.permalink | urlencode | safe }}</guid>
<description>{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}</description>
</item>
{% endfor %}


+ 1
- 1
components/templates/src/builtins/sitemap.xml View File

@@ -2,7 +2,7 @@
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
{% for sitemap_entry in entries %}
<url>
<loc>{{ sitemap_entry.permalink | safe | urlencode | safe }}</loc>
<loc>{{ sitemap_entry.permalink | urlencode | safe }}</loc>
{% if sitemap_entry.date %}
<lastmod>{{ sitemap_entry.date }}</lastmod>
{% endif %}


Loading…
Cancel
Save