do not include contact and about page in general feed
This commit is contained in:
parent
7c2cc91cfc
commit
5656cf1743
@ -34,6 +34,8 @@
|
|||||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ range $pages }}
|
{{ range $pages }}
|
||||||
|
{{ if or (eq .Title "About") (eq .Title "Contact") }}<!-- do nothing -->
|
||||||
|
{{else}}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
@ -43,7 +45,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>
|
<category>Podcast: {{.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 }}
|
||||||
@ -59,7 +61,10 @@
|
|||||||
]]>
|
]]>
|
||||||
</content:encoded>
|
</content:encoded>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if isset .Params "topic" }}<category>Reading: {{ .Params.topic }}</category>{{ end }}
|
{{ if isset .Params "topic" }}<category>Reading: {{ .Params.topic }}</category>
|
||||||
|
{{else}}
|
||||||
|
<category>Blog: {{.Params.topics }}</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 }}
|
||||||
@ -75,6 +80,7 @@
|
|||||||
</description>
|
</description>
|
||||||
{{ end }} <!-- IF ENCLOSURE / ELSE -->
|
{{ end }} <!-- IF ENCLOSURE / ELSE -->
|
||||||
</item>
|
</item>
|
||||||
|
{{ end }} <!-- if contact or about -->
|
||||||
{{ end }} <!-- RANGE -->
|
{{ end }} <!-- RANGE -->
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
Loading…
Reference in New Issue
Block a user