From 537cd948e822d7ddf8d5eb9a21128645df276097 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 4 Oct 2019 14:26:00 +0800 Subject: [PATCH] Fixsitemap --- docs/cn/sitemap.xml | 12 +++++------- docs/sitemap.xml | 14 ++++++-------- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/docs/cn/sitemap.xml b/docs/cn/sitemap.xml index e9dff6966..2136ba712 100644 --- a/docs/cn/sitemap.xml +++ b/docs/cn/sitemap.xml @@ -5,7 +5,7 @@ layout: null {% for post in site.categories.blog_cn %} - {{ post.url }} + {{ site.url }}{{ post.url }} {% if post.lastmod == null %} {{ post.date | date_to_xmlschema }} {% else %} @@ -17,16 +17,14 @@ layout: null {% endfor %} {% for page in site.pages %} {% if page.lang == "zh" %} - {{ page.url }} - {{ page.sitemap.lastmod | date_to_xmlschema }} - + + {{ site.url }}{{ page.url }} weekly {% if page.sitemap != null and page.sitemap != empty %} - + {{ page.sitemap.lastmod | date_to_xmlschema }} {{ page.sitemap.priority }} - {% endif %} + {% endif %} {% endfor %} - diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 058f7ec7b..5fb693771 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -5,7 +5,7 @@ layout: null {% for post in site.categories.blog %} - {{ post.url }} + {{ site.url }}{{ post.url }} {% if post.lastmod == null %} {{ post.date | date_to_xmlschema }} {% else %} @@ -17,16 +17,14 @@ layout: null {% endfor %} {% for page in site.pages %} {% if page.lang != "zh" %} - {{ page.url }} - {{ page.sitemap.lastmod | date_to_xmlschema }} - {% if page.sitemap != null and page.sitemap != empty %} + + {{ site.url }}{{ page.url }} weekly - - + {% if page.sitemap != null and page.sitemap != empty %} + {{ page.sitemap.lastmod | date_to_xmlschema }} {{ page.sitemap.priority }} - {% endif %} + {% endif %} {% endfor %} -