Skip to content

Commit

Permalink
Merge branch 'master' of github.com:feld/pelican-themes
Browse files Browse the repository at this point in the history
  • Loading branch information
feld committed Feb 18, 2016
2 parents f5d9dd9 + 8225332 commit ee11f65
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tuxlite_tbs/templates/sitemap.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit ee11f65

Please sign in to comment.