Skip to content

Commit

Permalink
feat: add index page to sitemap.xml (halo-dev#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
cetr authored Mar 17, 2021
1 parent 30c50f6 commit 54b409a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/resources/templates/common/web/sitemap_xml.ftl
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<#list posts as post>
<url>
Expand Down Expand Up @@ -28,4 +32,4 @@
</#list>
</#if>
</@tagTag>
</urlset>
</urlset>

0 comments on commit 54b409a

Please sign in to comment.