diff --git a/README.md b/README.md index 33a4f8e..8238b79 100644 --- a/README.md +++ b/README.md @@ -182,9 +182,6 @@ github: # (Set false if you don't need) url: https://github.com/Shen-Yu/hexo-theme-ayer -# fancybox(Use for gallery, set false if you don't need) -fancybox: true - # pv&uv statistics busuanzi: enable: true diff --git a/_config.yml b/_config.yml index 77b9477..4d69d43 100644 --- a/_config.yml +++ b/_config.yml @@ -130,9 +130,6 @@ github: # (关闭请设置为false) url: https://github.com/Shen-Yu/hexo-theme-ayer -# fancybox(仅用于相册展示,若需要可配置albums) -fancybox: true - # 访问量统计(不蒜子) busuanzi: enable: true diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index def1767..ed61ed2 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -48,7 +48,7 @@ <%- js('js/ayer') %> -<% if (theme.image_viewer && is_post()){ %> +<% if (theme.image_viewer){ %> <%- partial('viewer') %> <% } %> <% if (theme.mathjax){ %> @@ -63,4 +63,4 @@ <%- js('/js/busuanzi-2.3.pure.min') %> <% } %> - + \ No newline at end of file diff --git a/layout/_partial/post/albums.ejs b/layout/_partial/post/albums.ejs index 69d3091..563fc76 100644 --- a/layout/_partial/post/albums.ejs +++ b/layout/_partial/post/albums.ejs @@ -1,18 +1,17 @@ <% if (post.albums && post.albums.length){ %> -
- +
+<% } %> \ No newline at end of file diff --git a/layout/_partial/post/justifiedGallery.ejs b/layout/_partial/post/justifiedGallery.ejs index 4ce98d4..bccfe4e 100644 --- a/layout/_partial/post/justifiedGallery.ejs +++ b/layout/_partial/post/justifiedGallery.ejs @@ -1,12 +1,9 @@ <% if (post.albums && post.albums.length){ %> - - + diff --git a/source/js/ayer.js b/source/js/ayer.js index 1024b12..18e9043 100644 --- a/source/js/ayer.js +++ b/source/js/ayer.js @@ -1,5 +1,4 @@ (function ($) { - // // Search var $searchWrap = $('.search-form-wrap'), isSearchAnim = false, @@ -32,7 +31,6 @@ } }); - // // 移动设备侦测 var isMobile = { Android: function () { @@ -55,7 +53,6 @@ } }; - // // 建议在移动端不初始化,其实 /search.xml 文件还挺大的, if ($('.local-search').size()) { $.getScript('/js/search.js', function () { @@ -63,25 +60,14 @@ }); } - // // Share - $('.share-outer').click(()=>$('.share-wrap').fadeToggle()) + $('.share-outer').click(() => $('.share-wrap').fadeToggle()) - // - // fancybox - if ($.fancybox) { - $('[data-fancybox]').fancybox({ - protect: true - }); - } - - // // lazyload $("img.lazy").lazyload({ effect: "fadeIn" }); - // // justifiedGallery $('#gallery').justifiedGallery({ rowHeight: 200,