Browse Source

Update escaping with latest version of Tera

index-subcmd
Vincent Prouillet 5 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"> <rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel> <channel>
<title>{{ config.title }}</title> <title>{{ config.title }}</title>
<link>{{ config.base_url | safe | urlencode | safe }}</link>
<link>{{ config.base_url | urlencode | safe }}</link>
<description>{{ config.description }}</description> <description>{{ config.description }}</description>
<generator>Zola</generator> <generator>Zola</generator>
<language>{{ config.default_language }}</language> <language>{{ config.default_language }}</language>
@@ -12,8 +12,8 @@
<item> <item>
<title>{{ page.title }}</title> <title>{{ page.title }}</title>
<pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate> <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> <description>{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}</description>
</item> </item>
{% endfor %} {% 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"> <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
{% for sitemap_entry in entries %} {% for sitemap_entry in entries %}
<url> <url>
<loc>{{ sitemap_entry.permalink | safe | urlencode | safe }}</loc>
<loc>{{ sitemap_entry.permalink | urlencode | safe }}</loc>
{% if sitemap_entry.date %} {% if sitemap_entry.date %}
<lastmod>{{ sitemap_entry.date }}</lastmod> <lastmod>{{ sitemap_entry.date }}</lastmod>
{% endif %} {% endif %}


Loading…
Cancel
Save