diff --git a/layouts/photos/single.html b/layouts/photos/single.html index b041231..ee4bf8b 100644 --- a/layouts/photos/single.html +++ b/layouts/photos/single.html @@ -6,7 +6,8 @@ {{ .Content }} {{ $path := .Page.File.Path | strings.TrimSuffix (path.Ext .Page.File.Path) }} -{{ $images := where (resources.Match "photos/test1/*" ) "ResourceType" "eq" "image" }} +{{ $path := printf "%s/*" $path }} +{{ $images := where (resources.Match $path ) "ResourceType" "eq" "image" }}