From d508948deaba4d805d31c34a44aad7b2aca099fd Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 8 Feb 2021 19:56:36 +0800 Subject: [PATCH] pref: sitemap.xml (#1267) --- .../templates/common/web/sitemap_xml.ftl | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/main/resources/templates/common/web/sitemap_xml.ftl b/src/main/resources/templates/common/web/sitemap_xml.ftl index f7d17403..6cdf710c 100644 --- a/src/main/resources/templates/common/web/sitemap_xml.ftl +++ b/src/main/resources/templates/common/web/sitemap_xml.ftl @@ -8,4 +8,24 @@ + <@categoryTag method="list"> + <#if categories?? && categories?size gt 0> + <#list categories as category> + + <#if !globalAbsolutePathEnabled!true>${blog_url!}${category.fullPath!} + ${category.createTime?iso_local} + + + + + <@tagTag method="list"> + <#if tags?? && tags?size gt 0> + <#list tags as tag> + + <#if !globalAbsolutePathEnabled!true>${blog_url!}${tag.fullPath!} + ${tag.createTime?iso_local} + + + + \ No newline at end of file -- GitLab