feat: add index page to sitemap.xml (#1318)

pull/1327/head
知雨 2021-03-17 18:31:57 +08:00 committed by GitHub
parent 30c50f61f8
commit 54b409ac2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>${blog_url!}</loc>
<lastmod>${options.birthday?number_to_datetime?iso_local}</lastmod>
</url>
<#if posts?? && posts?size gt 0> <#if posts?? && posts?size gt 0>
<#list posts as post> <#list posts as post>
<url> <url>