pref: sitemap.xml (#1267)

pull/1277/head
Ryan Wang 2021-02-08 19:56:36 +08:00 committed by GitHub
parent 48ca0492d1
commit d508948dea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -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>