Added missing sitemap templates

This commit is contained in:
str4d
2013-01-18 11:06:08 +00:00
parent 59ac1fbc44
commit 09d020990e
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
{%- for url in urls %}
<url>
<loc>{{ url_root }}{{ g.lang }}{{ url.path }}</loc>
{%- for altlang in langs %}
<xhtml:link
rel="alternate"
hreflang="{{ altlang }}"
href="{{ url_root }}{{ altlang }}{{ url.path }}"
/>
{%- endfor %}
</url>
{%- endfor %}
</urlset>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- for lang in langs %}
<sitemap>
<loc>{{ url_root }}{{ lang }}/sitemap.xml</loc>
</sitemap>
{%- endfor %}
</sitemapindex>