{{ with .Site.GetPage "/art" }} {{ range .Param "featured" }}
{{ $full := resources.Get (printf "art/%s" .filename) }} {{ if $full }} {{ $filename_without_ext := strings.TrimSuffix (path.Ext .filename) .filename }} {{ $month := "1" }} {{ $year := "1" }} {{ if .date }} {{ $split := split .date "-" }} {{ $month = index $split 1 }} {{ $year = index $split 0 }} {{ end }} {{ $path := printf "/art/%s/%s/%s" $year $month $filename_without_ext}} {{ $title := .title }} {{ with resources.Get (printf "art/%s" .filename) }} {{ $image := .Resize "500x" }} {{ $title }} {{ else }}

Thumbnail not found!

{{ end }}
{{ with .title }} "{{ . }}" {{ end }}
{{ else }} CANNOT FIND {{ .filename }} {{ end }}
{{ end }} {{ end }}