Add XML declaration to XML templates.

Without this, at least one search engine spider was generating a
validation warning.
This commit is contained in:
Cliff L. Biffle 2019-06-05 08:03:22 -07:00
parent fa0cf05fe0
commit eba9726d07
3 changed files with 3 additions and 0 deletions

View file

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>

View file

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>

View file

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd"> <sitemapindex xmlns="https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd">
{% for sitemap in sitemaps %} {% for sitemap in sitemaps %}
<sitemap> <sitemap>