From 907f669bf633256ecaf3ee8d59f7c63f0e68ecab Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 14 Jul 2021 14:54:06 +0800 Subject: [PATCH] sidebar --- languages/en.yml | 1 + languages/zh-CN.yml | 1 + languages/zh-TW.yml | 1 + layout/_partial/sidebar/index.ejs | 64 +++++++------------ layout/_partial/sidebar/widgets/repo_info.ejs | 18 ++++-- layout/_partial/sidebar/widgets/wiki_more.ejs | 1 - source/css/_layout/partial/footer.styl | 2 +- source/css/_layout/sidebar/footer.styl | 5 +- source/css/_layout/sidebar/repo_info.styl | 26 +++++--- source/css/_layout/sidebar/sidebar.styl | 35 +++++----- source/css/_layout/sidebar/toc_wiki.styl | 2 + 11 files changed, 80 insertions(+), 76 deletions(-) diff --git a/languages/en.yml b/languages/en.yml index 8be7cde..831ff32 100755 --- a/languages/en.yml +++ b/languages/en.yml @@ -29,6 +29,7 @@ meta: updated: 'Updated on' license: License share: Share + repo_info: Repo Info date_suffix: just: Just min: minutes ago diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index 9c2f8c3..64b85d2 100755 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -29,6 +29,7 @@ meta: updated: 更新于 license: 许可协议 share: 分享文章 + repo_info: 项目仓库 date_suffix: just: 刚刚 min: 分钟前 diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index 4be8884..9017937 100755 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -29,6 +29,7 @@ meta: updated: 更新於 license: 授權條款 share: 分享文章 + repo_info: 項目倉庫 date_suffix: just: 剛剛 min: 分鐘前 diff --git a/layout/_partial/sidebar/index.ejs b/layout/_partial/sidebar/index.ejs index adc6c74..80ecf8a 100755 --- a/layout/_partial/sidebar/index.ejs +++ b/layout/_partial/sidebar/index.ejs @@ -24,48 +24,32 @@ function layoutWidgets() { return el; } function layoutFooterDiv() { - if (theme.footer.social && theme.footer.social.length > 0) { + if (page.layout !== 'wiki' && theme.footer.social && theme.footer.social.length > 0) { var el = '