forked from Bunteshaus/bunteshaus.de
18 lines
593 B
HTML
18 lines
593 B
HTML
{{ define "intro" }}
|
|
{{ if ne .Content "" }}
|
|
{{ partial "snippets/content" (dict "content" .Content) }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
|
|
{{ define "content" }}
|
|
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
|
{{- $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 }}
|