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

26 lines
776 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-24 22:24:02 +02:00
{{ if .Params.js }}
{{ range .Params.js }}
{{ $js := printf "/js/%s" . | safeURL }}
<script defer src="{{ $js | urlize }}"></script>
{{ end }}
{{ end }}
2022-06-17 17:45:53 +02:00
</article>
{{ end }}