From fe349d8bd324fe7476033baf836855b6d083d20a Mon Sep 17 00:00:00 2001 From: ppoffice Date: Sat, 11 Mar 2017 19:59:51 +0800 Subject: [PATCH] chore: minor clean up --- layout/plugin/scripts.ejs | 4 ++-- source/css/_extend.styl | 1 - source/js/main.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/layout/plugin/scripts.ejs b/layout/plugin/scripts.ejs index cdd6013..065702c 100644 --- a/layout/plugin/scripts.ejs +++ b/layout/plugin/scripts.ejs @@ -3,7 +3,7 @@ <%- css('libs/lightgallery/css/lightgallery.min') %> <% } %> <% if (theme.plugins.justifiedgallery) { %> - <%- css('libs/justified-gallery/justifiedGallery.min.css') %> + <%- css('libs/justified-gallery/justifiedGallery.min') %> <% } %> <% if (theme.plugins.google_analytics) { %> <%- partial('plugin/google-analytics') %> @@ -27,6 +27,6 @@ <%- js('libs/lightgallery/js/lg-video.min') %> <% } %> <% if (theme.plugins.justifiedgallery) { %> - <%- js('libs/justified-gallery/jquery.justifiedGallery.min.js') %> + <%- js('libs/justified-gallery/jquery.justifiedGallery.min') %> <% } %> <% } %> diff --git a/source/css/_extend.styl b/source/css/_extend.styl index 2a6cedc..1b85952 100644 --- a/source/css/_extend.styl +++ b/source/css/_extend.styl @@ -9,7 +9,6 @@ $link-dark $block-caption line-height: 1em - // color: color-grey text-decoration: none text-transform: uppercase diff --git a/source/js/main.js b/source/js/main.js index 08aeff5..98e63f6 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -13,7 +13,7 @@ } }); }); - if (lightGallery) { + if (typeof lightGallery != 'undefined') { var options = { selector: '.gallery-item', };