From d1371fbb980a62c1fbbbe7475c25d9fd80ee1627 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 26 Feb 2020 22:47:21 +0800 Subject: [PATCH] Fix sitemap. --- sitemap.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 %}