From d42e02e75de080ff7fae3eaad1859d4bd23643d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Sun, 25 Aug 2019 21:27:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E9=85=8D=E7=BD=AE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/yilia/_config.yml | 2 ++ themes/yilia/layout/_partial/after-footer.ejs | 1 + themes/yilia/layout/_partial/left-col.ejs | 1 - themes/yilia/source-src/config/comment.json | 25 ------------------- themes/yilia/source-src/js/comment.js | 13 ++++++---- themes/yilia/source-src/js/main.js | 3 +-- 6 files changed, 12 insertions(+), 33 deletions(-) delete mode 100644 themes/yilia/source-src/config/comment.json diff --git a/themes/yilia/_config.yml b/themes/yilia/_config.yml index c5f344d..2b94dce 100644 --- a/themes/yilia/_config.yml +++ b/themes/yilia/_config.yml @@ -61,6 +61,8 @@ toc: 2 toc_hide_index: true # 是否显示文章列表页的动画效果 animate: true +# 文章全文页面是否开启评论 +comment: true # 目录为空时的提示 toc_empty_wording: 目录,不存在的… diff --git a/themes/yilia/layout/_partial/after-footer.ejs b/themes/yilia/layout/_partial/after-footer.ejs index a326a47..a0b9c14 100644 --- a/themes/yilia/layout/_partial/after-footer.ejs +++ b/themes/yilia/layout/_partial/after-footer.ejs @@ -7,6 +7,7 @@ window.themeConfig = { isCategory: <%=is_category()%>, // 是否为分类页面 pageid: <%-page.pageid ? `"${page.pageid}"` : 'undefined'%>, // 页面标识, 用于个性化页面开发 toc_hide_index: <%=theme.toc_hide_index%>, // 目录序号 + comment: <%=theme.comment%>, // 文章全文页面是否开启评论 animate: <%=theme.animate%>, // 是否显示文章列表页动画效果 root: '<%=config.root%>', // 资源根路径 baseUrl: '<%=config.url%>', diff --git a/themes/yilia/layout/_partial/left-col.ejs b/themes/yilia/layout/_partial/left-col.ejs index 19dd6a2..46c3c91 100644 --- a/themes/yilia/layout/_partial/left-col.ejs +++ b/themes/yilia/layout/_partial/left-col.ejs @@ -1,4 +1,3 @@ -<% var defaultBg = '#4d4d4d'; %>