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