From b488d965c0ec7380bcc5b190fd2788cb8b63bae0 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Wed, 23 Dec 2020 21:36:59 +0000 Subject: [PATCH] Update sitemap automation --- sitemap.xml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sitemap.xml b/sitemap.xml index 78f7a83..aaa71a9 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -6,20 +6,14 @@ search: exclude {% for page in site.pages %} + {% assign page_url_end = page.url| slice: -4, 4 %} + {% if page.url != "/sitemap.xml" and page_url_end != ".css" %} {{ page.url }} {{ site.time | date: '%Y-%m-%d' }} daily 0.5 - {% endfor %} - - {% for post in site.posts %} - - {{ post.url }} - {{ site.time | date: '%Y-%m-%d' }} - daily - 0.5 - + {% endif %} {% endfor %}