{% capture site_url %}{% if site.url %}{{ site.url | append: site.baseurl }}{% else %}{{ site.github.url }}{% endif %}{% endcapture %}
{% for post in site.posts %}{% unless post.sitemap == false %}
{{ post.url | prepend: site_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 %}
{{ post.url | replace:'index.html','' | prepend: site_url }}
{{ 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 %}
{{ doc.url | replace:'index.html','' | prepend: site_url }}
{{ 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 %}
{{ file.path | prepend: site_url }}
{{ file.modified_time | date_to_xmlschema }}
0.6
{% endfor %}