Fix updated date in Atom feeds

This commit is contained in:
adnano 2020-09-30 00:27:59 -04:00
parent 8c40cf81f5
commit bc514e7f67

View file

@ -9,7 +9,7 @@ const atom_xml = `<?xml version="1.0" encoding="utf-8"?>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<link href="{{ .URL }}"/> <link href="{{ .URL }}"/>
<link rel="self" href="{{ .URL }}{{ .Path }}"/> <link rel="self" href="{{ .URL }}{{ .Path }}"/>
<updated>{{ .Updated }}</updated> <updated>{{ .Updated.Format "2006-01-02T15:04:05Z07:00" }}</updated>
<id>{{ .URL }}{{ .Path }}</id> <id>{{ .URL }}{{ .Path }}</id>
{{- $url := .URL -}} {{- $url := .URL -}}
{{- range .Entries }} {{- range .Entries }}