diff --git a/src/main/resources/templates/common/web/sitemap_xml.ftl b/src/main/resources/templates/common/web/sitemap_xml.ftl index f7d17403cb..6cdf710c16 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