2024-09-17 19:25:34 +00:00
|
|
|
{{- $showtitle := .showtitle | default false }}
|
|
|
|
{{- if eq (printf "%T" $showtitle) "string" }}
|
|
|
|
{{- $showtitle = (eq $showtitle "true") }}
|
|
|
|
{{- end }}
|
|
|
|
{{- $showdivider := .showdivider | default false }}
|
|
|
|
{{- if eq (printf "%T" $showdivider) "string" }}
|
|
|
|
{{- $showdivider = (eq $showdivider "true") }}
|
|
|
|
{{- end }}
|
|
|
|
{{- $showhidden := .showhidden | default false }}
|
|
|
|
{{- if eq (printf "%T" $showhidden) "string" }}
|
|
|
|
{{- $showhidden = (eq $showhidden "true") }}
|
|
|
|
{{- end }}
|
|
|
|
{{- $hidevisible := .hidevisible | default false }}
|
|
|
|
{{- if eq (printf "%T" $hidevisible) "string" }}
|
|
|
|
{{- $hidevisible = (eq $hidevisible "true") }}
|
|
|
|
{{- end }}
|
2024-09-18 18:36:42 +00:00
|
|
|
{{- $reverse := .reverse | default false }}
|
|
|
|
{{- if eq (printf "%T" $reverse) "string" }}
|
|
|
|
{{- $reverse = (eq $reverse "true") }}
|
|
|
|
{{- end }}
|
2024-09-17 19:25:34 +00:00
|
|
|
|
2024-09-18 18:36:42 +00:00
|
|
|
{{- $pages := .page.Pages }}
|
|
|
|
{{- if $reverse }}
|
|
|
|
{{- $pages = $pages.Reverse }}
|
|
|
|
{{- end }}
|
2024-09-17 19:25:34 +00:00
|
|
|
{{- $needsdivider := false }}
|
2024-09-18 18:36:42 +00:00
|
|
|
|
2024-09-17 19:25:34 +00:00
|
|
|
{{- range $pages }}
|
|
|
|
{{- $display := or
|
2024-09-18 18:36:42 +00:00
|
|
|
(and $showhidden (or .Params.hidden (eq .Title "")) )
|
|
|
|
(and (not $hidevisible) (not (or .Params.hidden (eq .Title ""))) )
|
2024-09-17 19:25:34 +00:00
|
|
|
}}
|
2024-09-18 18:36:42 +00:00
|
|
|
{{- if $display }}
|
|
|
|
{{- if and $showdivider $needsdivider }}
|
|
|
|
|
2024-09-17 19:25:34 +00:00
|
|
|
---
|
2024-09-18 18:36:42 +00:00
|
|
|
|
2024-09-17 19:25:34 +00:00
|
|
|
{{ end }}
|
2024-09-18 18:36:42 +00:00
|
|
|
{{ if and $showtitle .Title }}
|
|
|
|
|
2024-09-17 19:25:34 +00:00
|
|
|
# {{ .Title }}
|
2024-09-18 18:36:42 +00:00
|
|
|
|
2024-09-17 19:25:34 +00:00
|
|
|
{{ end }}
|
2024-09-18 18:36:42 +00:00
|
|
|
|
2024-09-17 19:25:34 +00:00
|
|
|
{{ .RenderShortcodes }}
|
2024-09-18 18:36:42 +00:00
|
|
|
|
|
|
|
{{ $needsdivider = true }}
|
|
|
|
{{- end }}
|
2024-09-17 19:25:34 +00:00
|
|
|
{{- end }}
|