bunteshaus.de/themes/buha/layouts/about/list.html

18 lines
580 B
HTML
Raw Normal View History

2022-06-17 17:45:53 +02:00
{{ define "intro" }}
{{ if ne .Content "" }}
{{ partial "snippets/content" (dict "content" .Content) }}
{{ end }}
{{ end }}
{{ define "content" }}
{{- $pages := where .Site.RegularPages "Permalink" "!=" .Permalink -}}
{{- $paginator := "" -}}
{{- $partial := "gen_list" -}}
{{- $paginate := true -}}
{{- $pages = (where $pages ".Params.about" "=" true) -}}
{{ $partial = string (printf "news/%s" $partial) }}
{{ partial $partial (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" $paginate) }}
{{ end }}