This commit is contained in:
Raymond Wanyoike 2014-10-29 09:41:25 +00:00
commit 64eb87207d
2 changed files with 32 additions and 0 deletions

View file

@ -51,6 +51,11 @@ An RSS icon will also appear on the nav if `FEED_ATOM` or `FEED_RSS` is set.
| GOOGLE_ANALYTICS_ID | TEXT | Google analytics |
#### Sitemap
[https://github.com/getpelican/pelican/wiki/Tips-n-Tricks#generate-sitemapxml](https://github.com/getpelican/pelican/wiki/Tips-n-Tricks#generate-sitemapxml)
## Live Demo
[nairobilug.or.ke](http://nairobilug.or.ke)

View file

@ -0,0 +1,27 @@
<?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>