From 749c1af54cfde1c8627a005d6106a11c5402d806 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 3 Jul 2021 20:49:52 +0800 Subject: [PATCH] sidebar --- layout/_partial/sidebar/logo.ejs | 4 ++-- layout/_partial/sidebar/widgets/markdown.ejs | 2 +- layout/_partial/sidebar/widgets/recent.ejs | 2 +- layout/_partial/sidebar/widgets/toc.ejs | 2 +- layout/_partial/sidebar/widgets/wiki_more.ejs | 2 +- layout/layout.ejs | 2 +- source/css/_layout/sidebar/sidebar.styl | 22 ++++++++++++------- 7 files changed, 21 insertions(+), 15 deletions(-) diff --git a/layout/_partial/sidebar/logo.ejs b/layout/_partial/sidebar/logo.ejs index 029304d..cace7b4 100644 --- a/layout/_partial/sidebar/logo.ejs +++ b/layout/_partial/sidebar/logo.ejs @@ -14,7 +14,7 @@ function layoutDiv() { el += '
'; // all products el += ''; - el += ''; + el += ''; el += __('btn.all_wiki'); el += ''; // this product @@ -48,4 +48,4 @@ function layoutDiv() { } %> -<%- layoutDiv() %> \ No newline at end of file +<%- layoutDiv() %> diff --git a/layout/_partial/sidebar/widgets/markdown.ejs b/layout/_partial/sidebar/widgets/markdown.ejs index 341996f..a25d2b6 100644 --- a/layout/_partial/sidebar/widgets/markdown.ejs +++ b/layout/_partial/sidebar/widgets/markdown.ejs @@ -1,5 +1,5 @@
-
+
<%- item.title %>
diff --git a/layout/_partial/sidebar/widgets/recent.ejs b/layout/_partial/sidebar/widgets/recent.ejs index c4c6572..966a38c 100644 --- a/layout/_partial/sidebar/widgets/recent.ejs +++ b/layout/_partial/sidebar/widgets/recent.ejs @@ -2,7 +2,7 @@ function layoutDiv() { var el = '
'; // header - el += '
'; + el += '
'; el += '' + __("meta.recent_update") + ''; if (item.rss) { el += ''; diff --git a/layout/_partial/sidebar/widgets/toc.ejs b/layout/_partial/sidebar/widgets/toc.ejs index 47bb122..b5e275b 100644 --- a/layout/_partial/sidebar/widgets/toc.ejs +++ b/layout/_partial/sidebar/widgets/toc.ejs @@ -24,7 +24,7 @@ function layoutDiv(fallback) { var el = ''; if (t.length > 0) { el += '
'; - el += '
'; + el += '
'; if (page.toc_title) { el += '' + page.toc_title + ''; } else if (t == 'wiki') { diff --git a/layout/_partial/sidebar/widgets/wiki_more.ejs b/layout/_partial/sidebar/widgets/wiki_more.ejs index a29257d..b546bb8 100644 --- a/layout/_partial/sidebar/widgets/wiki_more.ejs +++ b/layout/_partial/sidebar/widgets/wiki_more.ejs @@ -14,7 +14,7 @@ function layoutDiv() { } var el = ''; el += '