diff options
author | Mark Felder <feld@feld.me> | 2015-01-05 15:25:03 -0600 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2015-01-05 15:25:03 -0600 |
commit | 822533280afbf97e2228449119a4dd636ab45483 (patch) | |
tree | 2922c8abdfef3ec2a57b3ae702f6f48a6f80c39e /tuxlite_tbs/templates | |
parent | a16c9fb80cbb439a9ffa29c9e1c2bdef75d81d64 (diff) | |
download | pelican-themes-822533280afbf97e2228449119a4dd636ab45483.tar.gz |
Add sitemap generator
Diffstat (limited to 'tuxlite_tbs/templates')
-rw-r--r-- | tuxlite_tbs/templates/sitemap.html | 32 |
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> |