fix: justified gallery config name
parent
0019afad22
commit
d2b4e6a339
|
@ -60,7 +60,7 @@ share: default # options: jiathis, bdshare, addtoany, default
|
||||||
# Plugins
|
# Plugins
|
||||||
plugins:
|
plugins:
|
||||||
lightgallery: true # options: true, false
|
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_analytics: # enter the tracking ID for your Google Analytics
|
||||||
google_site_verification: # enter Google site verification code
|
google_site_verification: # enter Google site verification code
|
||||||
baidu_analytics: # enter Baidu Analytics hash key
|
baidu_analytics: # enter Baidu Analytics hash key
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// Caption
|
// Caption
|
||||||
$('.article-entry').each(function(i) {
|
$('.article-entry').each(function(i) {
|
||||||
$(this).find('img').each(function() {
|
$(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>');
|
$(this).after('<span class="caption">' + this.alt + '</span>');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue