make the main page RSS feed sensitive to different content types
This commit is contained in:
parent
75afa9f040
commit
7c2cc91cfc
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user