diff --git a/sitemap.xml b/sitemap.xml index 6205533..2ce77c4 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -10,13 +10,12 @@ {% assign exclude = ".htaccess sitemap.xml robots.txt" | split: " " %} {% for page in site.pages %} {% assign basename = page.url | split: "/" | last %} - {% if exclude contains basename %} - {% else %} + {% unless exclude contains basename %} {{ site.url }}{{ page.url }} {{ site.time | date: "%Y-%m-%d" }} - {% endif %} + {% endunless %} {% endfor %} {% for post in site.posts %}