We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37903cb commit 2a53c5eCopy full SHA for 2a53c5e
layouts/partials/flat-pages.html
@@ -1,7 +1,12 @@
1
{{- $pages := slice -}}
2
3
{{- range (where .Section.Pages "Params.hidden" "ne" true) -}}
4
- {{- $pages = $pages | append . -}}
+ {{- $isRedirect := or (isset .Params "redirect") (eq .Params.layout "redirect") -}}
5
+
6
+ {{- if not $isRedirect -}}
7
+ {{- $pages = $pages | append . -}}
8
+ {{- end -}}
9
10
{{- if .IsSection -}}
11
{{- $subPages := partial "flat-pages" (dict "Section" .) -}}
12
{{- $pages = $pages | append $subPages -}}
0 commit comments