{{ define "main" }} {{ .Title }} {{ .Content }} {{ if in (lower .Params.Mode) "one" }} {{ if .File.Dir }} {{ $basename := (replace .File.Dir "\\" "/") }} {{ range .Params.Images }} {{ .caption }} {{ end }} {{ end }} {{ partial "pagination/pagination-single" . }} {{ else }} {{ if .File.Dir }} {{ $basename := (replace .File.Dir "\\" "/") }} {{ range (readDir (print "./static/" $basename)) }} {{ index (split .Name ".") 0 }} {{ end }} {{ end }} {{ partial "pagination/pagination-single" . }} {{ end }} {{ partial "body/photoswipe" . }} {{ $masonry := resources.Get `js/masonry.pkgd.min.js` | resources.Fingerprint }} {{ $imagesloaded := resources.Get `js/imagesloaded.pkgd.min.js` | resources.Fingerprint }} {{ end }}