From aec18561dc191377a5bb2503530e630978d1a9a1 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 28 Dec 2018 09:28:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhttps=E4=B8=AD=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BD=BF=E7=94=A8=E5=88=86=E4=BA=AB=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 2 +- layout/_partial/scripts.ejs | 4 +++- layout/_third-party/share.ejs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 500b39c..bc6f1f9 100755 --- a/_config.yml +++ b/_config.yml @@ -9,7 +9,7 @@ info: version: 1.0-beta11 docs: https://xaoxuu.com/wiki/material-x/ # 主题的CDN地址。如需启用CDN,请在主目录的config中设置,详见文档。 - cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@18.12.38/ + cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@18.12.39/ ############################### 主题样式 ############################### diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index 4a49649..38dabfd 100755 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -54,7 +54,9 @@ <% } %> <% if (theme.services.share == true && config.mob && config.mob.appkey) { %> - + <% if (page.layout == 'post' && page.share != false) { %> + + <% } %> <% } %> diff --git a/layout/_third-party/share.ejs b/layout/_third-party/share.ejs index 4850823..72ca646 100644 --- a/layout/_third-party/share.ejs +++ b/layout/_third-party/share.ejs @@ -1,4 +1,4 @@ -<% if (theme.services && theme.services.share == true && config.mob && config.mob.appkey && config.mob.list) { %> +<% if (theme.services && theme.services.share == true && config.mob && config.mob.appkey && config.mob.list && page.layout == 'post' && page.share != false) { %>