Revert ignoredSections
This commit is contained in:
parent
47975f6702
commit
ea69ed14c2
|
@ -1,7 +1,6 @@
|
|||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $ignoredSections := ($.Param "ignoredSections" | default (slice "ignored")) -}}
|
||||
{{- $pages := ( where $pctx.RegularPages "Type" "not in" $ignoredSections ) -}}
|
||||
{{- $pages := $pctx.RegularPages -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $ignoredSections := ($.Param "ignoredSections" | default (slice "ignored")) -}}
|
||||
{{- $pages := ( where $pctx.RegularPages "Type" "not in" $ignoredSections ) -}}
|
||||
{{- $pages := $pctx.RegularPages -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
{{ . }}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- $ignoredSections := ($.Param "ignoredSections" | default (slice "ignored")) }}
|
||||
{{- $paginator := .Paginate ( where .Site.RegularPages "Type" "not in" $ignoredSections ) }}
|
||||
{{- $postSections := ($.Param "postSections" | default (slice "posts")) }}
|
||||
{{- $paginator := .Paginate ( where .Site.RegularPages "Type" "in" $postSections ) }}
|
||||
{{- range $paginator.Pages }}
|
||||
{{- .Render "summary" }}
|
||||
{{- end }}
|
||||
|
|
Reference in New Issue