From 917bf9917061ee98d95589a9aba94fd7dc9a25aa Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 24 Feb 2021 00:32:07 +0800 Subject: [PATCH] update --- _config.yml | 2 + layout/_partial/main/article/wiki_cover.ejs | 19 ++---- layout/_partial/main/post_list/wiki_card.ejs | 61 ++++++++----------- layout/_partial/sidebar/index.ejs | 2 +- source/css/_layout/base.styl | 2 +- source/css/_layout/navbar.styl | 13 ---- source/css/_layout/partial/cover.styl | 4 +- source/css/_layout/partial/read_next.styl | 4 +- source/css/_layout/partial/related_posts.styl | 8 ++- source/css/_layout/post_list.styl | 13 ++-- source/css/_layout/sidebar.styl | 2 +- source/css/_layout/tag-plugins/about.styl | 2 +- source/css/_layout/tag-plugins/navbar.styl | 12 ++++ source/css/_plugins/common/loading.styl | 1 + 14 files changed, 65 insertions(+), 80 deletions(-) create mode 100644 source/css/_layout/tag-plugins/navbar.styl diff --git a/_config.yml b/_config.yml index c17a2f1..4113be6 100755 --- a/_config.yml +++ b/_config.yml @@ -35,6 +35,8 @@ sidebar: url: /about/ # Sidebar widgets widgets: + # default layout in home/wiki/categories/tags/archives pages + layout: [welcome, recent] # Recent update recent: layout: recent diff --git a/layout/_partial/main/article/wiki_cover.ejs b/layout/_partial/main/article/wiki_cover.ejs index 52ac08d..da15de9 100644 --- a/layout/_partial/main/article/wiki_cover.ejs +++ b/layout/_partial/main/article/wiki_cover.ejs @@ -13,21 +13,12 @@ function layoutWikiCover() { var el = ''; el += '
'; el += '
'; - if (page.logo && cover.includes('logo')) { - el += '