{{ .Hugo.Generator }}
{{- $sp := .Site.GetPage "section" .Section }} {{- $sh := cond (or (not $sp.Params.header) (not (fileExists (printf "static/%s" $sp.Params.header)))) (cond (or (not .Site.Home.Params.header) (not (fileExists (printf "static/%s" .Site.Home.Params.header)))) "/img/speedy.png" .Site.Home.Params.header) $sp.Params.header }} {{- $sc := cond (or (not $sp.Params.caption)) (cond (not .Site.Home.Params.caption) .Site.Title .Site.Home.Params.caption) $sp.Params.caption }} {{- $ph := cond (or (not .Params.header) (not (fileExists (printf "static/%s" .Params.header)))) $sh .Params.header }}
{{ $caption := cond (not .Params.caption) $sc .Params.caption }} {{- if (eq (printf "%T" $caption) "string") }} {{- $caption -}} {{- else }} {{- index $caption 0 }} {{- if (gt (len $caption) 1) }} {{- range after 1 $caption -}}
{{ . }} {{- end -}} {{- end -}} {{- end }}
{{ block "main" . }}{{ end }}