bunteshaus.de/themes/buha/layouts/tools/single.html

20 lines
574 B
HTML
Raw Normal View History

2022-06-22 18:36:10 +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 "content" }}
{{ $partial := "" }}
{{ if eq .Params.tool "generator" }}
{{ $partial = "tools/generator" }}
{{ else if eq .Params.tool "nottranslated" }}
{{ $partial = "tools/nottranslated" }}
{{ end }}
<article>
2022-06-22 16:24:36 +02:00
{{ .Content }}
2022-06-17 17:45:53 +02:00
</article>
{{ end }}