{{- partial "load-photoswipe-theme.html" . }} {{ if .IsHome }} {{ if .Site.Params.homeTitle }}{{ $.Scratch.Set "title" .Site.Params.homeTitle }}{{ end }} {{ if .Site.Params.subtitle }}{{ $.Scratch.Set "subtitle" .Site.Params.subtitle }}{{ end }} {{ if .Site.Params.bigimg }}{{ $.Scratch.Set "bigimg" .Site.Params.bigimg }}{{ end }} {{ if .Site.Params.thumb }}{{ $.Scratch.Set "thumb" .Site.Params.thumb }}{{ end }} {{ else }} {{ $.Scratch.Set "title" .Title }} {{ if .Params.subtitle }}{{ $.Scratch.Set "subtitle" .Params.subtitle }}{{ end }} {{ if .Params.bigimg }}{{ $.Scratch.Set "bigimg" .Params.bigimg }}{{ end }} {{ end }} {{ $bigimg := $.Scratch.Get "bigimg" }} {{ $title := $.Scratch.Get "title" }} {{ $subtitle := $.Scratch.Get "subtitle" }} {{ $thumbs := $.Scratch.Get "thumb" }} {{ if or (or $bigimg $title) $thumbs }} {{ if $bigimg }}
{{ end }}{{ $thumb.desc }}
{{end}}