Added correct time format for podcast.
This commit is contained in:
parent
ff8fbcd632
commit
193bbca28c
|
@ -23,7 +23,7 @@
|
|||
<itunes:episode>{{ .EpisodeNumber }}</itunes:episode>
|
||||
<itunes:order>{{ .EpisodeNumber }}</itunes:order>
|
||||
<enclosure url="{{ .FileUrl }}" length="{{ .FileSize }}" type="audio/mpeg" />
|
||||
<pubDate>{{ .PublicationDate }}</pubDate>
|
||||
<pubDate>{{ rfc1123 .PublicationDate }}</pubDate>
|
||||
<itunes:duration>{{ .Duration }}</itunes:duration>
|
||||
<link>{{ .Url }}</link>
|
||||
</item>
|
||||
|
|
|
@ -117,6 +117,9 @@ var HMNTemplateFuncs = template.FuncMap{
|
|||
"rfc3339": func(t time.Time) string {
|
||||
return t.UTC().Format(time.RFC3339)
|
||||
},
|
||||
"rfc1123": func(t time.Time) string {
|
||||
return t.UTC().Format(time.RFC1123)
|
||||
},
|
||||
"alpha": func(alpha float64, color noire.Color) noire.Color {
|
||||
color.Alpha = alpha
|
||||
return color
|
||||
|
|
Loading…
Reference in New Issue