{{ $type := .Get "type" | default "articles" }} {{ $show := .Get "show" | default "all" }} {{ $hlevel := .Get "hlevel" | default "h3"}} {{ $readMore := .Get "readmore" | default false }} {{ $hr := .Get "hr" | default false }} {{ $doNotList := .Get "filterOut" | default "" }} {{ if eq $show "all" }} {{ .Scratch.Set "pages" (union .Page.Pages .Page.Sections) }} {{ else if (eq $show "sections") }} {{ .Scratch.Set "pages" .Page.Sections }} {{ else if (eq $show "pages") }} {{ .Scratch.Set "pages" .Page.RegularPages }} {{ end }} {{ $pages := where (.Scratch.Get "pages") "Title" "not in" (split $doNotList ", ") }} {{ if eq $type "articles" }} {{ else if (eq $type "functions") }} {{ else if (eq $type "list") }} {{ else if (eq $type "anchored-list") }} {{ end }}