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

19 lines
704 B
HTML
Raw Normal View History

2022-04-05 20:58:02 +02:00
{{ define "title" }}
2022-04-09 21:34:04 +02:00
<h1>{{ if (i18n .Title (dict "Count" 0))}}{{ i18n .Title (dict "Count" 0) }}{{ else }}{{ .Title }}{{ end }}</h1>
2022-04-05 20:58:02 +02:00
{{ end }}
2022-04-05 17:50:09 +02:00
2022-04-09 21:34:04 +02:00
{{ define "content" }}
2022-04-10 00:53:31 +02:00
{{ partial "debug" (dict "context" . "caller" "single_chooser.html")}}
{{ $partial_before := "" }}
2022-04-10 11:00:14 +02:00
{{ $partial := "layout/article" }}
2022-04-10 00:53:31 +02:00
{{ $pic := "true" }}
{{ if eq .Params.tool "generator" }}
2022-04-10 11:00:14 +02:00
{{ $partial = "layout/generator" }}
2022-04-10 00:53:31 +02:00
{{ else if eq .Params.tool "nottranslated" }}
2022-04-10 11:00:14 +02:00
{{ $partial = "layout/nottranslated" }}
2022-04-10 00:53:31 +02:00
{{ end }}
2022-04-11 18:16:40 +02:00
<article>
2022-04-10 10:35:48 +02:00
{{ partial $partial (dict "context" . "pic" $pic "content" .Content "partial_before" $partial_before "type" "article") }}
2022-04-11 18:16:40 +02:00
</article>
2022-04-04 01:13:42 +02:00
{{ end }}