From 532b4c465a3d9005ecec0894339198240b4d883c Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 1 Jan 2019 00:03:42 +0800 Subject: [PATCH] update --- _config.yml | 2 +- layout/_partial/meta.ejs | 8 ++++---- layout/_widget/category.ejs | 2 +- layout/_widget/list.ejs | 2 +- source/less/_widget.less | 1 + 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/_config.yml b/_config.yml index e8f5644..3cc14fb 100755 --- a/_config.yml +++ b/_config.yml @@ -24,7 +24,7 @@ services: scrollreveal: true nodewaves: true busuanzi: true - # fastclick: true + fastclick: true # leancloud_visitors: true recommended_posts: true # 需要安装"hexo-recommended-posts": "^1.0.3", comments: true diff --git a/layout/_partial/meta.ejs b/layout/_partial/meta.ejs index cedb456..c41a6fa 100644 --- a/layout/_partial/meta.ejs +++ b/layout/_partial/meta.ejs @@ -29,17 +29,17 @@ <% } %> <% } %> - <% if(post.date && (!page.meta || page.meta.date != false)){ %> + <% if(post.date && (!post.meta || post.meta.date != false)){ %> <% } %> - <% if(post.categories && (!page.meta || page.meta.categories != false)){ %> + <% if(post.categories && (!post.meta || post.meta.categories != false)){ %> <%- partial('categories',{post:post}) %> <% } %> - <% if(!isPostList && theme.services && (!page.meta || page.meta.counter != false)){ %> + <% if(!isPostList && theme.services && (!post.meta || post.meta.counter != false)){ %> <% if (theme.services.leancloud_visitors == true && config.leancloud_visitors && config.leancloud_visitors.app_id && config.leancloud_visitors.app_key) { %>
@@ -53,7 +53,7 @@ <% } %> <% } %> - <% if(isPostList && post.top == true){ %> + <% if(isPostList && post.top == true && (!post.meta || post.meta.top != false)){ %>
 <%- __('post.top') %>
diff --git a/layout/_widget/category.ejs b/layout/_widget/category.ejs index 671f272..7624b6c 100755 --- a/layout/_widget/category.ejs +++ b/layout/_widget/category.ejs @@ -4,7 +4,7 @@ diff --git a/layout/_widget/list.ejs b/layout/_widget/list.ejs index 1472e9f..ca24f9f 100755 --- a/layout/_widget/list.ejs +++ b/layout/_widget/list.ejs @@ -15,7 +15,7 @@   <%- row.name %>
<% if(row.desc) { %> -
<%- __('symbol.brackets_l') %><%- row.desc %><%- __('symbol.brackets_r') %>
+
(<%- row.desc %>)
<% } %> <% }) %> diff --git a/source/less/_widget.less b/source/less/_widget.less index f990a25..a02b243 100755 --- a/source/less/_widget.less +++ b/source/less/_widget.less @@ -81,6 +81,7 @@ } .badge{ flex:none; + font-weight: normal; font-size: @fontsize_small; color: fade(@color_text_main, 70%); }