Bug in podcast rss template, it is with not width.

This commit is contained in:
Fredrik Jonsson 2023-11-10 14:58:32 +01:00
commit d8af3cd856

View file

@ -44,7 +44,7 @@
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ width site.Params.Podcast.Author }}<author>{{ . }}</author>{{ end }} {{ with site.Params.Podcast.Author }}<author>{{ . }}</author>{{ end }}
<description>{{ .Content | html }}</description> <description>{{ .Content | html }}</description>
{{ if site.Params.Podcast.local | default true -}} {{ if site.Params.Podcast.local | default true -}}
{{ with .Params.podcast.mp3 }}{{ $file_stat := os.Stat (path.Join "/static" .) }}<enclosure url="{{ if site.Params.Podcast.cdn }}{{ path.Join site.Params.Podcast.cdn (. | relURL) }}{{ else }}{{ . | absURL }}{{ end }}" length="{{ $file_stat.Size }}" type="audio/mpeg" />{{ end }} {{ with .Params.podcast.mp3 }}{{ $file_stat := os.Stat (path.Join "/static" .) }}<enclosure url="{{ if site.Params.Podcast.cdn }}{{ path.Join site.Params.Podcast.cdn (. | relURL) }}{{ else }}{{ . | absURL }}{{ end }}" length="{{ $file_stat.Size }}" type="audio/mpeg" />{{ end }}