forked from Bunteshaus/bunteshaus.de
20 lines
574 B
HTML
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 }}
|