diff --git a/sitemap.xml b/sitemap.xml index bc6af4c..2160bba 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -14,8 +14,8 @@ layout: compress {% unless post.published == false %} {% capture lastmod %} - {% if post.lastmod %} - {{ post.lastmod }} + {% if post.seo.date_modified %} + {{ post.seo.date_modified }} {% elsif post.date %} {{ post.date }} {% else %} @@ -39,7 +39,9 @@ layout: compress 0.5 {% endif %} + {% endunless %} + {% endfor %} {% for page in site.pages %}