From 3bf7f894d308ed69acae4e0fd46e674ae53b902b Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 23 Feb 2021 21:09:49 +0800 Subject: [PATCH] update --- _config.yml | 3 ++ layout/_partial/main/navbar/breadcrumb.ejs | 28 +++++++--- layout/_partial/main/navbar/list_post.ejs | 2 +- layout/_partial/main/navbar/list_wiki.ejs | 2 +- layout/_partial/main/post_list/post_card.ejs | 9 ++-- layout/_partial/main/post_list/wiki_card.ejs | 20 +++++--- .../plugins/comments/utterances/layout.ejs | 3 ++ scripts/helpers/category_color.js | 9 ++++ scripts/helpers/doc_tree.js | 51 +++++++++++++++++++ source/css/_layout/base.styl | 4 -- source/css/_layout/main.styl | 4 +- source/css/_layout/navbar.styl | 18 ++++--- source/css/_layout/partial/comments.styl | 8 +-- source/css/_plugins/comments/utterances.styl | 3 ++ source/css/_plugins/common/loading.styl | 14 +++++ source/css/_plugins/index.styl | 7 +++ 16 files changed, 150 insertions(+), 35 deletions(-) create mode 100644 scripts/helpers/category_color.js create mode 100644 scripts/helpers/doc_tree.js create mode 100644 source/css/_plugins/comments/utterances.styl create mode 100644 source/css/_plugins/common/loading.styl diff --git a/_config.yml b/_config.yml index 6c0203c..c17a2f1 100755 --- a/_config.yml +++ b/_config.yml @@ -59,6 +59,9 @@ sidebar: article: # 如果没有指定 excerpt 和 description,将自动取多长的内容作为文章摘要? auto_excerpt: 200 + # 分类颜色 + category_color: + '新闻稿': '#DA0F47' # 相关文章,需要安装插件 (for layout: post) # npm i hexo-related-popular-posts related_posts: diff --git a/layout/_partial/main/navbar/breadcrumb.ejs b/layout/_partial/main/navbar/breadcrumb.ejs index 7a2d105..8df196a 100644 --- a/layout/_partial/main/navbar/breadcrumb.ejs +++ b/layout/_partial/main/navbar/breadcrumb.ejs @@ -1,14 +1,20 @@ <% if (page.breadcrumb != false) { %>