{% capture site_url %}{% if site.url %}{{ site.url }}{% else %}{{ site.github.url }}{% endif %}{% endcapture %} {% for post in site.posts %}{% unless post.sitemap == false %} {{ site_url }}{{ post.url }} {% if post.last_modified_at %} {{ post.last_modified_at | date_to_xmlschema }} {% else %} {{ post.date | date_to_xmlschema }} {% endif %} 0.8 {% endunless %}{% endfor %} {% for post in site.html_pages %}{% unless post.sitemap == false %} {{ site_url }}{{ post.url | replace:'index.html','' }} {{ site.time | date_to_xmlschema }} weekly {% if post.url == "/" or post.url == "/index.html" %}1.0{% else %}0.7{% endif %} {% endunless %}{% endfor %} {% for collection in site.collections %}{% unless collection.last.output == false %} {% for doc in collection.last.docs %}{% unless doc.sitemap == false %} {{ site_url }}{{ doc.url | replace:'index.html','' }} {{ site.time | date_to_xmlschema }} weekly {% if doc.url == "/" or doc.url == "/index.html" %}1.0{% else %}0.7{% endif %} {% endunless %}{% endfor %} {% endunless %}{% endfor %} {% for file in site.html_files %} {{ site_url }}{{ file.path }} {{ file.modified_time | date:"%Y-%m-%dT%H:%M:%SZ" }} 0.6 {% endfor %}