remove testing string and use proper path var

This commit is contained in:
Jakub 2024-03-01 21:27:01 -05:00
parent 1639033905
commit a365f82360

View File

@ -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" }}
<div class="gallery">
{{ range $images }}
<div class="gallery-item">