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
1 changed files with 2 additions and 0 deletions

View File

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