---
#####
# generates a sitemap based on https://www.sitemaps.org/
# to be deployed at root of collection
# only generated during production environment build
# blank if noindex: true is set in _config.yml
#####
permalink: /sitemap.xml
---
{%- if jekyll.environment == "production" and site.noindex != true -%}
<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for p in site.html_pages %}{% unless page.noindex == true or layout.noindex == true %}
   <url>
      <loc>{{ p.url | absolute_url }}</loc>
      <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
      <changefreq>monthly</changefreq>
   </url>
{% endunless %}{% endfor %}
</urlset>
{%- endif -%}