update gallery url

This commit is contained in:
icefox 2026-01-08 23:18:03 -03:00
parent ba6e785f5f
commit 89a99c0aa7
No known key found for this signature in database

View file

@ -34,7 +34,7 @@
pages: [{{range $i, $p := .Pages}}{{if $i}},{{end}}'{{$p}}'{{end}}],
urls: [],
prefetched: new Set(),
imageExts: ['.png', '.jpg', '.jpeg', '.gif', '.webp', '.bmp', '.avif'],
imageExts: ['.png', '.jpg', '.jpeg', '.webp', '.bmp', '.avif'],
isImage(path) {
const ext = path.substring(path.lastIndexOf('.')).toLowerCase();
return this.imageExts.includes(ext);