From a9473d4d2257cef935cbc5fd4d65ce0cd8491586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=AE=87?= <448766534@qq.com> Date: Mon, 16 Mar 2020 11:24:54 +0800 Subject: [PATCH] :rocket: fix: albums display --- README.md | 3 --- _config.yml | 3 --- layout/_partial/after-footer.ejs | 4 ++-- layout/_partial/post/albums.ejs | 29 +++++++++++------------ layout/_partial/post/justifiedGallery.ejs | 15 +++++------- layout/_partial/viewer.ejs | 2 +- source/js/ayer.js | 16 +------------ 7 files changed, 24 insertions(+), 48 deletions(-) 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){ %> -