itsblue-website/themes/quark-hugo/layouts/_default/modular.html
2021-10-07 11:21:03 +02:00

20 lines
528 B
HTML

{{ define "hero" }}
{{ with partial "modular/_dataGetter.html" . }}
{{ range . }}
{{ if eq .modularLayout "hero" }}
{{ partial "modular/hero.html" . }}
{{end}}
{{ end }}
{{ end }}
{{ end }}
{{ define "body" }}
{{ $pageObj := . }}
{{ with partial "modular/_dataGetter.html" . }}
{{ range . }}
{{ if not (eq .modularLayout "hero") }}
{{ partial (print "modular/" .modularLayout ".html") (merge . (dict "page" $pageObj) ) }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}