fix: birthday type in sitemap

pull/190/head v1.1.0
1379 2 years ago committed by 1379Monitor
parent 7db85afcbd
commit 6fe94cd8ba

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

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

Loading…
Cancel
Save