Add lgHash to lightgallery's plugins, upgrade lg

This enables the hash plugin. This gives each photo a unique URL to make
it easier to share.

Also, upgrading lg to 2.9.0
This commit is contained in:
ksfeldman
2026-01-23 19:48:29 -05:00
parent bb61cf6000
commit 96a60bbaf5
9 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class LGallery {
// Create the lightGallery instance
this.element = document.getElementById('lightgallery')
this.lightGallery = lightGallery(this.element, Object.assign({
plugins: [lgZoom, lgThumbnail, lgVideo, lgFullscreen],
plugins: [lgZoom, lgThumbnail, lgVideo, lgFullscreen, lgHash],
speed: 500,
/*
This license key was graciously provided by LightGallery under their