From dd80bd80262e3cedde8ba917fa972d3af61fde31 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 25 Feb 2021 20:49:43 +0800 Subject: [PATCH] update --- _config.yml | 2 +- layout/_partial/main/article/read_next.ejs | 40 +++++++++---------- layout/_partial/main/article/references.ejs | 4 +- .../_partial/main/article/related_posts.ejs | 2 +- layout/_partial/plugins/comments/layout.ejs | 4 +- layout/_partial/sidebar/index.ejs | 2 +- layout/post.ejs | 2 +- layout/wiki.ejs | 2 +- source/css/_layout/md.styl | 2 +- .../{references.styl => article_footer.styl} | 23 ++++++----- source/css/_layout/partial/comments.styl | 3 +- source/css/_layout/partial/read_next.styl | 5 +-- source/css/_layout/partial/related_posts.styl | 15 +------ source/css/_layout/partial/related_wrap.styl | 4 ++ 14 files changed, 51 insertions(+), 59 deletions(-) rename source/css/_layout/partial/{references.styl => article_footer.styl} (72%) create mode 100644 source/css/_layout/partial/related_wrap.styl diff --git a/_config.yml b/_config.yml index 1469d2e..049ae7d 100755 --- a/_config.yml +++ b/_config.yml @@ -26,7 +26,7 @@ sidebar: # Sidebar widgets widgets: # default layout in home/wiki/categories/tags/archives pages - layout: [welcome, recent] + default: [welcome, recent] # Recent update recent: layout: recent diff --git a/layout/_partial/main/article/read_next.ejs b/layout/_partial/main/article/read_next.ejs index 1525bd7..821290a 100644 --- a/layout/_partial/main/article/read_next.ejs +++ b/layout/_partial/main/article/read_next.ejs @@ -33,32 +33,32 @@ function layoutDiv() { } }); } - let wrapper = ''; + let el = ''; if (prev || next) { - wrapper += ''; } - return wrapper; + return el; } %> <%- layoutDiv(); %> diff --git a/layout/_partial/main/article/references.ejs b/layout/_partial/main/article/references.ejs index eae46b2..6cec712 100644 --- a/layout/_partial/main/article/references.ejs +++ b/layout/_partial/main/article/references.ejs @@ -4,7 +4,7 @@ function layoutDiv() { return ''; } let el = ''; - el += '
'; + el += '