From 6fe94cd8ba55ea9a5a8ee337a3f64ba0584712f1 Mon Sep 17 00:00:00 2001
From: 1379 <1379@1379.com>
Date: Sat, 11 Mar 2023 20:31:02 +0800
Subject: [PATCH] fix: birthday type in sitemap
---
resources/template/common/web/sitemap_html.tmpl | 2 +-
resources/template/common/web/sitemap_xml.tmpl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/resources/template/common/web/sitemap_html.tmpl b/resources/template/common/web/sitemap_html.tmpl
index b654671..08134a6 100644
--- a/resources/template/common/web/sitemap_html.tmpl
+++ b/resources/template/common/web/sitemap_html.tmpl
@@ -135,7 +135,7 @@
- {{unix_milli_time_format "2006-01-02" .options.birthday}}
+ {{unix_milli_time_format "2006-01-02" (int64 .options.birthday)}}
daily
1
diff --git a/resources/template/common/web/sitemap_xml.tmpl b/resources/template/common/web/sitemap_xml.tmpl
index 228ef82..43192ba 100644
--- a/resources/template/common/web/sitemap_xml.tmpl
+++ b/resources/template/common/web/sitemap_xml.tmpl
@@ -3,7 +3,7 @@
{{.blog_url}}
- {{unix_milli_time_format "2006-01-02T15:04:05Z07:00" .options.birthday}}
+ {{unix_milli_time_format "2006-01-02T15:04:05Z07:00" (int64 .options.birthday)}}
{{if (gt (len .posts) 0)}}
{{range $post := .posts}}