fix: lightGallery not shown for index page images
This commit is contained in:
parent
18a0f3cf6d
commit
8b818d06ac
|
@ -15,7 +15,9 @@
|
|||
var options = {
|
||||
selector: '.gallery-item',
|
||||
};
|
||||
lightGallery($('.article-entry')[0], options);
|
||||
$('.article-entry').each(function(i, entry) {
|
||||
lightGallery(entry, options);
|
||||
});
|
||||
lightGallery($('.article-gallery')[0], options);
|
||||
}
|
||||
if (!!$.prototype.justifiedGallery) { // if justifiedGallery method is defined
|
||||
|
|
Loading…
Reference in New Issue