last one plsss

This commit is contained in:
Conner Chu 2025-07-06 15:46:32 +02:00
parent 4897c008ce
commit a82bcccf88

View File

@ -112,7 +112,7 @@ Ordinal: {{ .Ordinal}}
<div id="{{ $galleryWrapperId }}" class="gallery-wrapper">
<div id="{{ $galleryId }}" class="justified-gallery">
{{ range $original := sort $images "Name" $sortOrder}}
{{ if and (eq $original.ResourceType "image") (in "jpeg png tiff webp" $original.MediaType.SubType) (not (hasSuffix $original.Name ".meta")) }}
{{ if and (eq $original.ResourceType "image") (in "jpeg png tiff webp" $original.MediaType.SubType) }}
{{/* Get metadata from sidecar file, if present. Else an empty dictionary is used. */}}
{{ $metaFileName := print $original.Name ".meta"}}