sitemap.xml 979 B

123456789101112131415161718192021222324252627282930
  1. ---
  2. layout: null
  3. ---
  4. <?xml version="1.0" encoding="UTF-8"?>
  5. <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  6. {% for post in site.posts %}
  7. <url>
  8. <loc>{{ site.url }}{{ post.url }}</loc>
  9. {% if post.lastmod == null %}
  10. <lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
  11. {% else %}
  12. <lastmod>{{ post.lastmod | date_to_xmlschema }}</lastmod>
  13. {% endif %}
  14. {% if post.sitemap.changefreq == null %}
  15. <changefreq>weekly</changefreq>
  16. {% else %}
  17. <changefreq>{{ post.sitemap.changefreq }}</changefreq>
  18. {% endif %}
  19. {% if post.sitemap.priority == null %}
  20. <priority>0.5</priority>
  21. {% else %}
  22. <priority>{{ post.sitemap.priority }}</priority>
  23. {% endif %}
  24. </url>
  25. {% endfor %}
  26. </urlset>