Skip to content

Commit

Permalink
pref: sitemap.xml (halo-dev#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Feb 8, 2021
1 parent b3d76e0 commit dcb4be2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/main/resources/templates/common/web/sitemap_xml.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,24 @@
</url>
</#list>
</#if>
<@categoryTag method="list">
<#if categories?? && categories?size gt 0>
<#list categories as category>
<url>
<loc><#if !globalAbsolutePathEnabled!true>${blog_url!}</#if>${category.fullPath!}</loc>
<lastmod>${category.createTime?iso_local}</lastmod>
</url>
</#list>
</#if>
</@categoryTag>
<@tagTag method="list">
<#if tags?? && tags?size gt 0>
<#list tags as tag>
<url>
<loc><#if !globalAbsolutePathEnabled!true>${blog_url!}</#if>${tag.fullPath!}</loc>
<lastmod>${tag.createTime?iso_local}</lastmod>
</url>
</#list>
</#if>
</@tagTag>
</urlset>

0 comments on commit dcb4be2

Please sign in to comment.