From e723bf93d9d9a0750252da5113dff47506c604c8 Mon Sep 17 00:00:00 2001 From: Anton Nb <83947622+antnb@users.noreply.github.com> Date: Sat, 9 Mar 2024 12:55:33 +0700 Subject: [PATCH] Add files via upload --- sitemap/test.xml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 sitemap/test.xml diff --git a/sitemap/test.xml b/sitemap/test.xml new file mode 100644 index 0000000000..c3fe8ab290 --- /dev/null +++ b/sitemap/test.xml @@ -0,0 +1,66 @@ +--- +layout: null +sitemap: + exclude: 'yes' +--- + + + + {% for page in site.pages %} + {% unless page.sitemap.exclude == "yes" or page.name == "feed.xml" %} + + + {{ site.liveUrl }}{{ page.url | remove: "index.html" }} + + {% if page.sitemap.lastmod %} + {{ page.sitemap.lastmod | date: "%Y-%m-%d" }} + {% elsif page.date %} + {{ page.date | date_to_xmlschema }} + {% else %} + {{ site.time | date_to_xmlschema }} + {% endif %} + {% if page.sitemap.changefreq %} + {{ page.sitemap.changefreq }} + {% else %} + monthly + {% endif %} + {% if page.sitemap.priority %} + {{ page.sitemap.priority }} + {% else %} + 0.3 + {% endif %} + + {% endunless %} + {% endfor %} + + {% for collection in site.collections %} + {% for post in collection.docs %} + {% unless post.published == false or post.sitemap.exclude == "yes" or page.name == "feed.xml" %} + + {{ site.liveUrl }}{{ post.url }} + {% if post.sitemap.lastmod %} + {{ post.sitemap.lastmod | date: "%Y-%m-%d" }} + {% elsif post.date %} + {{ post.date | date_to_xmlschema }} + {% else %} + {{ site.time | date_to_xmlschema }} + {% endif %} + {% if post.sitemap.changefreq %} + {{ post.sitemap.changefreq }} + {% else %} + monthly + {% endif %} + {% if post.sitemap.priority %} + {{ post.sitemap.priority }} + {% else %} + 0.5 + {% endif %} + + {% endunless %} + {% endfor %} + {% endfor %} +