From 822533280afbf97e2228449119a4dd636ab45483 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Mon, 5 Jan 2015 15:25:03 -0600 Subject: Add sitemap generator --- tuxlite_tbs/templates/sitemap.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tuxlite_tbs/templates/sitemap.html 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 @@ + + + +{% for article in articles %} + + {{ SITEURL }}/{{ article.url }} + 0.8 + + + {% for translation in article.translations %} + + {{ SITEURL }}/{{ translation.url }} + 0.8 + + {% endfor %} +{% endfor %} + +{% for page in pages %} + + {{ SITEURL }}/{{ page.url }} + 1.0 + + + {% for translation in page.translations %} + + {{ SITEURL }}/{{ translation.url }} + 1.0 + + {% endfor %} +{% endfor %} + + -- cgit v1.1