diff --git a/feed.xml b/feed.xml index 980b9c3..7701795 100644 --- a/feed.xml +++ b/feed.xml @@ -30,8 +30,8 @@ layout: compress {{ post.title }} {{ post.date | date_to_xmlschema }} - {% if post.lastmod %} - {{ post.lastmod | date_to_xmlschema }} + {% if post.seo.date_modified %} + {{ post.seo.date_modified | date_to_xmlschema }} {% else %} {{ site.time | date_to_xmlschema }} {% endif %} diff --git a/sitemap.xml b/sitemap.xml index 2160bba..7b0bb70 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -10,22 +10,11 @@ layout: compress + {% for post in site.posts %} - {% unless post.published == false %} - - {% capture lastmod %} - {% if post.seo.date_modified %} - {{ post.seo.date_modified }} - {% elsif post.date %} - {{ post.date }} - {% else %} - {{ site.time }} - {% endif %} - {% endcapture %} - {{ site.url | append: site.baseurl | append: post.url }} - {{ lastmod | date_to_xmlschema }} + {{ site.time | date_to_xmlschema }} {% if post.sitemap.changefreq %} {{ post.sitemap.changefreq }} @@ -39,9 +28,6 @@ layout: compress 0.5 {% endif %} - - {% endunless %} - {% endfor %} {% for page in site.pages %}