remove testing string and use proper path var
This commit is contained in:
parent
1639033905
commit
a365f82360
@ -6,7 +6,8 @@
|
|||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
{{ $path := .Page.File.Path | strings.TrimSuffix (path.Ext .Page.File.Path) }}
|
{{ $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">
|
<div class="gallery">
|
||||||
{{ range $images }}
|
{{ range $images }}
|
||||||
<div class="gallery-item">
|
<div class="gallery-item">
|
||||||
|
Loading…
Reference in New Issue
Block a user