aboutsummaryrefslogtreecommitdiffstats
path: root/templates/sitemap.html
diff options
context:
space:
mode:
authorHans-Nikolai Viessmann2020-07-05 21:28:07 +0200
committerHans-Nikolai Viessmann2020-07-05 21:28:07 +0200
commitc41fe3ca569253ee24c6aaf4d3a82082897d16c4 (patch)
tree37bddba7f1248534e91686c1b55dce74920e570b /templates/sitemap.html
downloadpelican-theme-edream-c41fe3ca569253ee24c6aaf4d3a82082897d16c4.tar.gz
pelican-theme-edream-c41fe3ca569253ee24c6aaf4d3a82082897d16c4.zip
initial commit
Diffstat (limited to 'templates/sitemap.html')
-rw-r--r--templates/sitemap.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/sitemap.html b/templates/sitemap.html
new file mode 100644
index 0000000..e844e0b
--- /dev/null
+++ b/templates/sitemap.html
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+
+{% for article in articles %}
+ <url>
+ <loc>{{ SITEURL }}/{{ article.url }}</loc>
+ <priority>0.8</priority>
+ </url>
+
+ {% for translation in article.translations %}
+ <url>
+ <loc>{{ SITEURL }}/{{ translation.url }}</loc>
+ <priority>0.8</priority>
+ </url>
+ {% endfor %}
+{% endfor %}
+
+{% for page in pages %}
+ <url>
+ <loc>{{ SITEURL }}/{{ page.url }}</loc>
+ <priority>1.0</priority>
+ </url>
+
+ {% for translation in page.translations %}
+ <url>
+ <loc>{{ SITEURL }}/{{ translation.url }}</loc>
+ <priority>1.0</priority>
+ </url>
+ {% endfor %}
+{% endfor %}
+
+</urlset>