forked from Bunteshaus/bunteshaus.de
23 lines
1.0 KiB
HTML
23 lines
1.0 KiB
HTML
{{ partial "debug" (dict "context" .context "caller" "single_chooser.html")}}
|
|
{{ $partial_before := "" }}
|
|
{{ $partial := "layout/single/article" }}
|
|
{{ $pic := .pic }}
|
|
{{ if eq (lower .context.Section) "imprint" }}
|
|
{{ $partial_before = "snippets/contact" }}
|
|
{{ $partial = "layout/single/content_single" }}
|
|
{{ $pic = false }}
|
|
{{ else if eq (lower .context.Section) "contact" }}
|
|
{{ $partial_before = "snippets/contact" }}
|
|
{{ $partial = "layout/single/content_single" }}
|
|
{{ $pic = true }}
|
|
{{ else if eq (lower .context.Section) "links" }}
|
|
{{ $partial = "layout/single/links" }}
|
|
{{ else if eq (lower .context.Section) "archive" }}
|
|
{{ $partial = "layout/single/archive" }}
|
|
{{ else if eq .context.Title "Generator" }}
|
|
{{ $partial = "layout/single/generator" }}
|
|
{{ end }}
|
|
<article>
|
|
{{ partial $partial (dict "context" .context "pic" $pic "content" .context.Content "partial_before" $partial_before) }}
|
|
</article>
|