make the main page RSS feed sensitive to different content types

This commit is contained in:
Greg Gauthier 2022-01-04 19:10:39 +00:00
parent 75afa9f040
commit 7c2cc91cfc

View File

@ -43,6 +43,7 @@
<!-- *** THE ENCLOSURE PARAMETER WILL BE TREATED AS A SIGNAL THAT THIS IS A PODCAST *** --> <!-- *** THE ENCLOSURE PARAMETER WILL BE TREATED AS A SIGNAL THAT THIS IS A PODCAST *** -->
{{ if isset .Params "enclosure" }} {{ if isset .Params "enclosure" }}
{{ $cdnUrl := .Site.Params.podcastCdnUrl }} {{ $cdnUrl := .Site.Params.podcastCdnUrl }}
<category>{{ .Params.series }}</category>
<enclosure url="{{$cdnUrl}}{{.Params.enclosure}}" type="audio/mpeg"/> <enclosure url="{{$cdnUrl}}{{.Params.enclosure}}" type="audio/mpeg"/>
<description> <description>
{{`<![CDATA[ ` | safeHTML }} {{`<![CDATA[ ` | safeHTML }}
@ -58,6 +59,7 @@
]]> ]]>
</content:encoded> </content:encoded>
{{ else }} {{ else }}
{{ if isset .Params "topic" }}<category>Reading: {{ .Params.topic }}</category>{{ end }}
{{ if isset .Params "image" }} {{ if isset .Params "image" }}
{{ $cdnUrl := .Site.Params.blogCdnUrl }} {{ $cdnUrl := .Site.Params.blogCdnUrl }}
{{ with .Params.image }}<enclosure url="{{ $cdnUrl }}{{ . }}" type="image/jpg"/>{{ end }} {{ with .Params.image }}<enclosure url="{{ $cdnUrl }}{{ . }}" type="image/jpg"/>{{ end }}