Skip to content

Commit

Permalink
fix: birthday type in sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
1379 authored and 1379 committed Mar 11, 2023
1 parent 7db85af commit 6fe94cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/template/common/web/sitemap_html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<div class="clear"></div>
<li>
<div class="T1 pull-left"><a href="{{.blog_url}}" title="{{.blog_title}}">{{.blog_title}}</a></div>
<div class="T2 pull-right">{{unix_milli_time_format "2006-01-02" .options.birthday}} </div>
<div class="T2 pull-right">{{unix_milli_time_format "2006-01-02" (int64 .options.birthday)}} </div>
<div class="T3 pull-right">daily</div>
<div class="T4 pull-right">1</div>
</li>
Expand Down
2 changes: 1 addition & 1 deletion resources/template/common/web/sitemap_xml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>{{.blog_url}}</loc>
<lastmod>{{unix_milli_time_format "2006-01-02T15:04:05Z07:00" .options.birthday}}</lastmod>
<lastmod>{{unix_milli_time_format "2006-01-02T15:04:05Z07:00" (int64 .options.birthday)}}</lastmod>
</url>
{{if (gt (len .posts) 0)}}
{{range $post := .posts}}
Expand Down

0 comments on commit 6fe94cd

Please sign in to comment.