Skip to content

Commit 6fe94cd

Browse files
13791379
authored andcommitted
fix: birthday type in sitemap
1 parent 7db85af commit 6fe94cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/template/common/web/sitemap_html.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
<div class="clear"></div>
136136
<li>
137137
<div class="T1 pull-left"><a href="{{.blog_url}}" title="{{.blog_title}}">{{.blog_title}}</a></div>
138-
<div class="T2 pull-right">{{unix_milli_time_format "2006-01-02" .options.birthday}} </div>
138+
<div class="T2 pull-right">{{unix_milli_time_format "2006-01-02" (int64 .options.birthday)}} </div>
139139
<div class="T3 pull-right">daily</div>
140140
<div class="T4 pull-right">1</div>
141141
</li>

resources/template/common/web/sitemap_xml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
44
<url>
55
<loc>{{.blog_url}}</loc>
6-
<lastmod>{{unix_milli_time_format "2006-01-02T15:04:05Z07:00" .options.birthday}}</lastmod>
6+
<lastmod>{{unix_milli_time_format "2006-01-02T15:04:05Z07:00" (int64 .options.birthday)}}</lastmod>
77
</url>
88
{{if (gt (len .posts) 0)}}
99
{{range $post := .posts}}

0 commit comments

Comments
 (0)