--- layout: null sitemap: exclude: true --- {% 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 skip = false %} {% for path in site.sitemap.exclude %} {% assign path_len = path | size %} {% assign test = page.name | slice: 0, path_len %} {% if test == path %} {% assign skip = true %} {% endif %} {% endfor %} {% unless skip == true or page.sitemap.exclude == true %} {{ site.url }}{{ page.url | 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 %} {% endunless %} {% endfor %}