My site, built off an old simple jekyll template called rifyll

sitemap.xml 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ---
  2. layout: null
  3. sitemap:
  4. exclude: "yes"
  5. ---
  6. <?xml version="1.0" encoding="UTF-8"?>
  7. <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  8. {% for post in site.posts %}
  9. {% unless post.published == false %}
  10. <url>
  11. <loc>{{ post.url | prepend: site.baseurl}}</loc>
  12. {% if post.sitemap.lastmod %}
  13. <lastmod>{{ post.lastmodified | date_to_xmlschema }}</lastmod>
  14. {% elsif post.date %}
  15. <lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
  16. {% else %}
  17. <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
  18. {% endif %}
  19. <changefreq>weekly</changefreq>
  20. <priority>0.5</priority>
  21. </url>
  22. {% endunless %}
  23. {% endfor %}
  24. {% for page in site.pages %}
  25. {% unless page.sitemap.exclude == "yes" %}
  26. <url>
  27. <loc>{{ page.url | prepend: site.baseurl }}</loc>
  28. {% if page.lastmodified %}
  29. <lastmod>{{ page.lastmodified | date_to_xmlschema}}</lastmod>
  30. {% elsif page.date %}
  31. <lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
  32. {% else %}
  33. <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
  34. {% endif %}
  35. <changefreq>weekly</changefreq>
  36. <priority>0.5</priority>
  37. </url>
  38. {% endunless %}
  39. {% endfor %}
  40. </urlset>