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

13 lines
563 B
HTML
Raw Normal View History

2022-04-09 21:34:04 +02:00
{{ partial "debug" (dict "context" .context "caller" "single_chooser.html")}}
{{ $partial_before := "" }}
{{ $partial := "layout/single/article" }}
{{ $pic := .pic }}
2022-04-10 00:53:31 +02:00
{{ if eq .context.Params.tool "generator" }}
2022-04-09 21:34:04 +02:00
{{ $partial = "layout/single/generator" }}
2022-04-10 00:53:31 +02:00
{{ else if eq .context.Params.tool "nottranslated" }}
{{ $partial = "layout/single/nottranslated" }}
2022-04-09 21:34:04 +02:00
{{ end }}
<article>
{{ partial $partial (dict "context" .context "pic" $pic "content" .context.Content "partial_before" $partial_before) }}
</article>