From d7b110b52aa40276a4eb7f9c21eea99ba6dafa12 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 24 Feb 2019 15:37:50 +0800 Subject: [PATCH] update --- _config.yml | 3 +- layout/_partial/head.ejs | 2 + layout/_partial/scripts.ejs | 109 ------------------------------------ 3 files changed, 3 insertions(+), 111 deletions(-) diff --git a/_config.yml b/_config.yml index d43d0b4..d7fa7e8 100755 --- a/_config.yml +++ b/_config.yml @@ -20,12 +20,11 @@ style: pure # pure: 导航栏和标题栏背景是白色 # 服务开关,如果你想禁用某些功能,直接设置为false或者注释掉,相关的js脚本就不会加载。 # 有些服务这里打开了也未必会生效,还需要额外的配置,详见文档。 services: - cdn: true + # cdn: true scrollreveal: true nodewaves: true busuanzi: true # fastclick: true - # leancloud_visitors: true # popular_posts: true # 需要安装插件 hexo-related-popular-posts comments: true volantis: true diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index ad4f2fb..0711a16 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -31,7 +31,9 @@ <% } %> + <% if (config.feed && config.feed.path){ %> <%- feed_tag(config.feed.path, {title: config.title}) %> + <% } %> diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index f304dc8..54354d1 100755 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -59,115 +59,6 @@ <% } %> <% } %> - - <% if (theme.services.leancloud_visitors == true) { %> - - <% if (config.leancloud_visitors && config.leancloud_visitors.app_id && config.leancloud_visitors.app_key) { %> - - - - <% } %> - <% } %> <% var displayComments = false; if (page && theme.services) {