fix: justified gallery config name
This commit is contained in:
parent
0019afad22
commit
d2b4e6a339
|
@ -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
|
||||
|
|
|
@ -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>');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue