bunteshaus.de/themes/buha/layouts/_default/single.html
2022-04-10 10:35:48 +02:00

19 lines
725 B
HTML

{{ define "title" }}
<h1>{{ if (i18n .Title (dict "Count" 0))}}{{ i18n .Title (dict "Count" 0) }}{{ else }}{{ .Title }}{{ end }}</h1>
{{ end }}
{{ define "content" }}
{{ partial "debug" (dict "context" . "caller" "single_chooser.html")}}
{{ $partial_before := "" }}
{{ $partial := "layout/single/article" }}
{{ $pic := "true" }}
{{ if eq .Params.tool "generator" }}
{{ $partial = "layout/single/generator" }}
{{ else if eq .Params.tool "nottranslated" }}
{{ $partial = "layout/single/nottranslated" }}
{{ end }}
<article>
{{ partial $partial (dict "context" . "pic" $pic "content" .Content "partial_before" $partial_before "type" "article") }}
</article>
{{ end }}