+ {{ $caption := cond (not .Page.Params.caption) (cond (not $sp.Title) .Site.Title $sp.Title) .Page.Params.Caption }}
+ {{- if (eq (printf "%T" $caption) "string") }}
+ {{- .Page.Params.caption -}}
{{- else }}
-
+ {{- index .Page.Params.caption 0 }}
+ {{- if (gt (len .Page.Params.caption) 1) }}
+ {{- range after 1 .Page.Params.caption -}}
+
+ {{ . }}
+ {{- end -}}
+ {{- end -}}
{{- end }}
-
-
+