diff --git a/README.md b/README.md index cbd36c2..cc3f0f4 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,12 @@ An RSS icon will also appear on the nav if `FEED_ATOM` or `FEED_RSS` is set. | GOOGLE_ANALYTICS_ID | TEXT | Google analytics | + +#### Sitemap + +Ref: https://github.com/getpelican/pelican/wiki/Tips-n-Tricks#generate-sitemapxml + + ## Live Demo [nairobilug.or.ke](http://nairobilug.or.ke) diff --git a/alchemy/templates/sitemap.html b/alchemy/templates/sitemap.html new file mode 100644 index 0000000..a1c782b --- /dev/null +++ b/alchemy/templates/sitemap.html @@ -0,0 +1,30 @@ + + + {% 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 %} +