{{- 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 }}
{{ if $bigimg }}
{{ $subtitle := $.Scratch.Get "subtitle" }}

{{ with $.Scratch.Get "title" }}{{.}}{{ else }}
{{ end }}

{{ if $subtitle }} {{ if eq .Type "page" }}
{{ $subtitle }} {{ else }}

{{ $subtitle }}

{{ end }} {{ end }} {{ if eq .Type "post" }} {{ partial "post_meta.html" . }} {{ end }}
{{end}} {{ if $title }}
{{ if eq .Type "list" }}

{{ if .Data.Singular }}#{{ end }}{{ .Title }}

{{ else }}

{{ with $title }}{{.}}{{ else }}
{{ end }}

{{ end }} {{ if ne .Type "post" }}
{{ end }} {{ if $subtitle }} {{ if eq .Type "page" }} {{ $subtitle }} {{ else }}

{{ $subtitle }}

{{ end }} {{ end }} {{ if eq .Type "post" }} {{ partial "post_meta.html" . }} {{ end }}
{{ else }}
{{end}} {{ if $thumbs }}
{{range $i, $thumb := $thumbs}}
{{ if $thumb.desc }}

{{ $thumb.desc }}

{{end}}
{{ end }}
{{ end }}
{{ else }}
{{ end }}