From 1c4b56813757bf58cb411493f2fa730099917170 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 28 Dec 2018 10:08:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9share=E7=9A=84=E5=91=BD?= =?UTF-8?q?=E5=90=8D=EF=BC=8C=E5=A2=9E=E5=8A=A0volantis=E7=9A=84=E5=BC=80?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 1 + layout/_partial/scripts.ejs | 14 +++++++++----- layout/_third-party/share.ejs | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/_config.yml b/_config.yml index bc6f1f9..e979aa4 100755 --- a/_config.yml +++ b/_config.yml @@ -29,6 +29,7 @@ services: # leancloud_visitors: true recommended_posts: true # 需要安装"hexo-recommended-posts": "^1.0.3", comments: true + volantis: true music: true share: true diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index 38dabfd..9c6eaf3 100755 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -53,9 +53,9 @@ }, false) <% } %> - <% if (theme.services.share == true && config.mob && config.mob.appkey) { %> + <% if (theme.services.share == true && config.mob && config.mob.app_key) { %> <% if (page.layout == 'post' && page.share != false) { %> - + <% } %> <% } %> @@ -208,10 +208,14 @@ <% if (config.valine){ %> <% if (config.valine.enable && config.valine.app_id && config.valine.app_key){ %> - <% if (theme.services && theme.services.cdn == true) { %> - + <% if (theme.services.volantis == true) { %> + <% if (theme.services && theme.services.cdn == true) { %> + + <% } else { %> + <%- js('js/volantis.js') %> + <% } %> <% } else { %> - <%- js('js/volantis.js') %> + <% } %>