--- layout: null sitemap: exclude: 'yes' --- {% for post in site.posts %} {% unless post.published == false %} {{ site.url }}{{ post.url }} {% if post.sitemap.lastmod %} {{ post.sitemap.lastmod | date: "%Y-%m-%d" }} {% elsif post.date %} {{ post.date | date_to_xmlschema }} {% else %} {{ site.time | date_to_xmlschema }} {% endif %} {% if post.sitemap.changefreq %} {{ post.sitemap.changefreq }} {% else %} monthly {% endif %} {% if post.sitemap.priority %} {{ post.sitemap.priority }} {% else %} 0.5 {% endif %} {% endunless %} {% endfor %} {% for page in site.pages %} {% assign split_path = page.path | split: "." %} {% assign extension = split_path | last %} {% if page.sitemap.exclude != "yes" and extension == "html" and page.path != "/404.html" %} {{ site.url }}{{ page.permalink | remove: "index.html" }} {% if page.sitemap.lastmod %} {{ page.sitemap.lastmod | date: "%Y-%m-%d" }} {% elsif page.date %} {{ page.date | date_to_xmlschema }} {% else %} {{ site.time | date_to_xmlschema }} {% endif %} {% if page.sitemap.changefreq %} {{ page.sitemap.changefreq }} {% else %} monthly {% endif %} {% if page.sitemap.priority %} {{ page.sitemap.priority }} {% else %} 0.3 {% endif %} {% endif %} {% endfor %} {% for collection in site.collections %} {% if collection.output %} {% for doc in collection.docs %} {{ site.url }}{{ doc.url | remove: "index.html" }} {% if doc.sitemap.lastmod %} {{ doc.sitemap.lastmod | date: "%Y-%m-%d" }} {% elsif doc.date %} {{ doc.date | date_to_xmlschema }} {% else %} {{ site.time | date_to_xmlschema }} {% endif %} {% if doc.sitemap.changefreq %} {{ doc.sitemap.changefreq }} {% else %} monthly {% endif %} {% if doc.sitemap.priority %} {{ doc.sitemap.priority }} {% else %} 0.3 {% endif %} {% endfor %} {% endif %} {% endfor %}