aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2016-02-18 11:24:32 -0600
committerMark Felder <feld@feld.me>2016-02-18 11:24:32 -0600
commitee11f6539c31141454d6992d1085344ff0e609e3 (patch)
tree9f9a0d3b4af11cb7b6c3e49a2e74abac053141de
parentf5d9dd96d59d9d465fef5d883310a8031f7bca8d (diff)
parent822533280afbf97e2228449119a4dd636ab45483 (diff)
downloadpelican-themes-ee11f6539c31141454d6992d1085344ff0e609e3.zip
pelican-themes-ee11f6539c31141454d6992d1085344ff0e609e3.tar.gz
pelican-themes-ee11f6539c31141454d6992d1085344ff0e609e3.tar.bz2
Merge branch 'master' of github.com:feld/pelican-themes
-rw-r--r--tuxlite_tbs/templates/sitemap.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/tuxlite_tbs/templates/sitemap.html b/tuxlite_tbs/templates/sitemap.html
new file mode 100644
index 0000000..e844e0b
--- /dev/null
+++ b/tuxlite_tbs/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>