{% for post in site.posts %}{% unless post.sitemap == false %}
{{ post.url | absolute_url }}
{{ post.last_modified_at | default: post.date | date_to_xmlschema }}
{% endunless %}{% endfor %}
{% for page in site.html_pages %}{% unless page.sitemap == false %}
{{ page.url | replace:'/index.html','/' | absolute_url }}
{% if page.last_modified_at %}
{{ page.last_modified_at | date_to_xmlschema }}
{% endif %}
{% endunless %}{% endfor %}
{% for collection in site.collections %}{% unless collection.last.output == false or collection.output == false or collection.label == 'posts' %}
{% for doc in collection.last.docs %}{% unless doc.sitemap == false %}
{{ doc.url | replace:'/index.html','/' | absolute_url }}
{% if doc.last_modified_at %}
{{ doc.last_modified_at | date_to_xmlschema }}
{% endif %}
{% endunless %}{% endfor %}
{% for doc in collection.docs %}{% unless doc.sitemap == false %}
{{ doc.url | replace:'/index.html','/' | absolute_url }}
{% if doc.last_modified_at %}
{{ doc.last_modified_at | date_to_xmlschema }}
{% endif %}
{% endunless %}{% endfor %}
{% endunless %}{% endfor %}
{% for file in page.static_files %}
{{ file.path | absolute_url }}
{{ file.modified_time | date_to_xmlschema }}
{% endfor %}