X-Git-Url: https://www.kengrimes.com/gitweb/?p=kengrimes.com%2Ftheme.git;a=blobdiff_plain;f=layouts%2F_default%2Fbaseof.html;h=1f102a477d5829ba73981c6fe25a6d6291cb8dac;hp=545589101371e8ed6b7d2d647d62556cc99a1ad6;hb=af846c74fa32efa787846f3702e9f5a8050e7e51;hpb=6c61007c1278be9ac5fb0bb998a1b530d3c76a23 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5455891..1f102a4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -16,13 +16,13 @@ {{- $ph := cond (not $ph) (relURL "/img/speedy.png") $ph.RelPermalink }}
- {{ $caption := cond (not .Page.Params.caption) (cond (not $sp.Title) .Site.Title $sp.Title) .Page.Params.Caption }} + {{ $caption := cond (not .Page.Params.caption) (cond (not $sp.Params.caption) .Site.Title $sp.Params.caption) .Page.Params.caption }} {{- if (eq (printf "%T" $caption) "string") }} - {{- .Page.Params.caption -}} + {{- $caption -}} {{- else }} - {{- index .Page.Params.caption 0 }} - {{- if (gt (len .Page.Params.caption) 1) }} - {{- range after 1 .Page.Params.caption -}} + {{- index $caption 0 }} + {{- if (gt (len $caption) 1) }} + {{- range after 1 $caption -}}
{{ . }} {{- end -}}