Fix update date on atom feeds

This commit is contained in:
hedy 2024-04-10 21:13:34 +08:00
parent 3de8393a3d
commit 175279bda8
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<title>hedy's blog</title>
<link href="{{ .RelPermalink }}"/>
<updated>{{ .Date.Format "2006-01-02" | safeHTML }}T12:00:00Z</updated>
<updated>{{ time.Now | time.Format "2006-01-02" | safeHTML }}T12:00:00Z</updated>
<id>{{ .RelPermalink }}</id>
<author>
<name>{{ $.Site.Author.name }}</name>

View File

@ -10,7 +10,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<title>hedy's gemlog</title>
<link href="{{ .Site.Params.geminiRoot }}"/>
<updated>{{ .Date.Format "2006-01-02" | safeHTML }}T12:00:00Z</updated>
<updated>{{ time.Now | time.Format "2006-01-02" | safeHTML }}T12:00:00Z</updated>
<id>{{ .Site.Params.geminiRoot }}</id>
<author>
<name>{{ $.Site.Author.name }}</name>