From d2b4e6a339bdb72ca4ee768fdb02f496e49b2de2 Mon Sep 17 00:00:00 2001 From: ppoffice Date: Thu, 20 Oct 2016 21:54:40 +0800 Subject: [PATCH] fix: justified gallery config name --- _config.yml.example | 2 +- source/js/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_config.yml.example b/_config.yml.example index 47e588b..af49cf8 100644 --- a/_config.yml.example +++ b/_config.yml.example @@ -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 diff --git a/source/js/main.js b/source/js/main.js index d036dca..08aeff5 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -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('' + this.alt + ''); }