fix: justified gallery config name

This commit is contained in:
ppoffice 2016-10-20 21:54:40 +08:00
parent 0019afad22
commit d2b4e6a339
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ share: default # options: jiathis, bdshare, addtoany, default
# Plugins
plugins:
lightgallery: true # options: true, false
justified-gallery: true # options: true, false
justifiedgallery: true # options: true, false
google_analytics: # enter the tracking ID for your Google Analytics
google_site_verification: # enter Google site verification code
baidu_analytics: # enter Baidu Analytics hash key

View File

@ -3,7 +3,7 @@
// Caption
$('.article-entry').each(function(i) {
$(this).find('img').each(function() {
if (this.alt) {
if (this.alt && !(!!$.prototype.justifiedGallery && $(this).parent('.justified-gallery').length)) {
$(this).after('<span class="caption">' + this.alt + '</span>');
}