Created
November 6, 2014 15:47
-
-
Save mygeekdaddy/b2fb6e5704f666a8b343 to your computer and use it in GitHub Desktop.
Pelican sitemap.xml templat for Pelican
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment