bunteshaus.de/themes/buha/layouts/partials/snippets/single_chooser.html

13 lines
563 B
HTML

{{ partial "debug" (dict "context" .context "caller" "single_chooser.html")}}
{{ $partial_before := "" }}
{{ $partial := "layout/single/article" }}
{{ $pic := .pic }}
{{ if eq .context.Params.tool "generator" }}
{{ $partial = "layout/single/generator" }}
{{ else if eq .context.Params.tool "nottranslated" }}
{{ $partial = "layout/single/nottranslated" }}
{{ end }}
<article>
{{ partial $partial (dict "context" .context "pic" $pic "content" .context.Content "partial_before" $partial_before) }}
</article>