Merge pull request #77 from Ambroisie/add-rss-disable-feature
Allow hiding posts from RSS feed
This commit is contained in:
commit
b43d933019
2 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $pages := $pctx.RegularPages -}}
|
||||
{{- $pages := where $pctx.RegularPages ".Params.disable_feed" "!=" true -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
|
@ -31,4 +31,4 @@
|
|||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
||||
</rss>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue