From a365f82360ca4d4a4043c261a36a334f0187dedd Mon Sep 17 00:00:00 2001 From: Jakub Date: Fri, 1 Mar 2024 21:27:01 -0500 Subject: [PATCH] remove testing string and use proper path var --- layouts/photos/single.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" }}