From 9ef5613eab21489e5280a54ddad29ba4352bdf72 Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Sat, 12 Nov 2016 11:26:38 +0300 Subject: [PATCH] Add sitemap support, https://github.com/getpelican/pelican/wiki/Tips-n-Tricks#generate-sitemapxml --- alchemy/templates/sitemap.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 alchemy/templates/sitemap.html diff --git a/alchemy/templates/sitemap.html b/alchemy/templates/sitemap.html new file mode 100644 index 0000000..947c5a2 --- /dev/null +++ b/alchemy/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 %} + +