This website works better with JavaScript.
git.jstrong.dev
Home
Explore
Help
Sign In
jstrong
/
zola
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add XML declaration to XML templates.
Without this, at least one search engine spider was generating a validation warning.
index-subcmd
Cliff L. Biffle
5 years ago
parent
fa0cf05fe0
commit
eba9726d07
3 changed files
with
3 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
components/templates/src/builtins/rss.xml
+1
-0
components/templates/src/builtins/sitemap.xml
+1
-0
components/templates/src/builtins/split_sitemap_index.xml
+ 1
- 0
components/templates/src/builtins/rss.xml
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>
+ 1
- 0
components/templates/src/builtins/sitemap.xml
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>
+ 1
- 0
components/templates/src/builtins/split_sitemap_index.xml
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>
Write
Preview
Loading…
Cancel
Save