fix: lightGallery not shown for index page images

This commit is contained in:
ppoffice 2016-09-04 16:57:18 +08:00
parent 18a0f3cf6d
commit 8b818d06ac
1 changed files with 3 additions and 1 deletions

View File

@ -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