bunteshaus.de/themes/buha/layouts/tools/single.html
2022-06-22 18:36:10 +02:00

20 lines
574 B
HTML

{{ 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 }}
{{ define "content" }}
{{ $partial := "" }}
{{ if eq .Params.tool "generator" }}
{{ $partial = "tools/generator" }}
{{ else if eq .Params.tool "nottranslated" }}
{{ $partial = "tools/nottranslated" }}
{{ end }}
<article>
{{ .Content }}
</article>
{{ end }}