{{ partial "head.html" . }}
{{ .Title }}
{{ partial "header.html" . }}
{{ $sourcePath := "images" }} {{ $gallery := site.GetPage $sourcePath }} {{ with $gallery.Resources.ByType "image" }} {{ $index := len . }} {{ $.Scratch.Add "img" slice }} {{ range . }} {{ $index = sub $index 1}} {{ $colors := .Colors }} {{ $pColor := index $colors 0 }} {{ $sColor := "#ccc" }} {{ if gt (len $colors) 1 }} {{ $sColor = index $colors 1 }} {{ end }} {{ $.Scratch.Add "img" (dict "index" (string $index) "url" (string .RelPermalink) "imgH" (string .Height) "imgW" (string .Width) "pColor" (string $pColor) "sColor" (string $sColor)) }} {{ end }} {{ end }} {{ partial "desktop_wrapper.html" . }}