You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.0 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  3. {% for post in posts %}
  4. <url>
  5. <loc>{{ post.permalink | uriencode }}</loc>
  6. {% if post.updated %}
  7. <lastmod>{{ post.updated | formatDate }}</lastmod>
  8. {% elif post.date %}
  9. <lastmod>{{ post.date | formatDate }}</lastmod>
  10. {% endif %}
  11. <changefreq>monthly</changefreq>
  12. <priority>0.6</priority>
  13. </url>
  14. {% endfor %}
  15. <url>
  16. <loc>{{ config.url | uriencode }}</loc>
  17. <lastmod>{{ sNow | formatDate }}</lastmod>
  18. <changefreq>daily</changefreq>
  19. <priority>1.0</priority>
  20. </url>
  21. {% for tag in tags %}
  22. <url>
  23. <loc>{{ tag.permalink | uriencode }}</loc>
  24. <lastmod>{{ sNow | formatDate }}</lastmod>
  25. <changefreq>weekly</changefreq>
  26. <priority>0.2</priority>
  27. </url>
  28. {% endfor %}
  29. {% for cat in categories %}
  30. <url>
  31. <loc>{{ cat.permalink | uriencode }}</loc>
  32. <lastmod>{{ sNow | formatDate }}</lastmod>
  33. <changefreq>weekly</changefreq>
  34. <priority>0.2</priority>
  35. </url>
  36. {% endfor %}
  37. </urlset>