diff options
author | Dillon <dillonzq@outlook.com> | 2022-05-12 00:35:34 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2022-05-12 00:35:34 +0300 |
commit | 8a9df9b02f78187481745293b1fbcb51fc7b7005 (patch) | |
tree | 3431f95a946abac3344842be76634abc64e30148 /src | |
parent | 5e9c5f64176445b1bbb437e83aa707850730975e (diff) |
chore(lib): update lightgallery 1.2.0 -> 2.4.0
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/js/theme.js b/src/js/theme.js index 429cb342..a00bd28e 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -325,7 +325,19 @@ class Theme { } initLightGallery() { - if (this.config.lightGallery) lightGallery(document.getElementById('content'), this.config.lightGallery); + if (this.config.lightgallery) lightGallery(document.getElementById('content'), { + plugins: [lgThumbnail, lgZoom], + selector: '.lightgallery', + speed: 400, + hideBarsDelay: 2000, + allowMediaOverlap: true, + exThumbImage: 'data-thumbnail', + toggleThumb: true, + thumbWidth: 80, + thumbHeight: '60px', + actualSize: false, + showZoomInOutIcons: true, + }); } initHighlight() { |