2022-06-22 18:15:37 +02:00
|
|
|
{{ define "banner" }}
|
|
|
|
{{ $image := "" }}
|
|
|
|
{{ if .Resources.GetMatch "banner*" }}
|
|
|
|
{{ $image = .Resources.GetMatch "banner*" }}
|
|
|
|
{{ end }}
|
|
|
|
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
|
|
|
{{ end }}
|
|
|
|
|
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 -}}
|
|
|
|
{{- $pages = where $pages ".Params.featured" "=" true -}}
|
2022-06-22 16:34:55 +02:00
|
|
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
2022-06-17 17:45:53 +02:00
|
|
|
{{ end }}
|
|
|
|
|