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') %> + <% } %>