diff --git a/languages/en.yml b/languages/en.yml index 6db44f6..f2b825d 100755 --- a/languages/en.yml +++ b/languages/en.yml @@ -14,7 +14,7 @@ btn: getting_started: Getting Started edit: Edit This Page top: Scroll to Top - bottom: Jump to Comment + comments: Join Discussion meta: recent_update: Recent Update diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index f1a9070..d65f4a8 100755 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -14,7 +14,7 @@ btn: getting_started: 开始使用 edit: 编辑本文 top: 回到顶部 - bottom: 评论跳转 + comments: 参与讨论 meta: recent_update: 最近更新 diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index a4f9551..907c5ef 100755 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -14,7 +14,7 @@ btn: getting_started: 開始使用 edit: 編輯本文 top: 回到頂部 - bottom: 評論跳轉 + comments: 參與討論 meta: recent_update: 最近更新 diff --git a/layout/_partial/menubtn.ejs b/layout/_partial/menubtn.ejs index 543069d..84e2146 100644 --- a/layout/_partial/menubtn.ejs +++ b/layout/_partial/menubtn.ejs @@ -5,12 +5,4 @@ - - <% if (page.comments) { %> - - <% } %> diff --git a/layout/_partial/widgets/toc.ejs b/layout/_partial/widgets/toc.ejs index 88447bc..57fe2c7 100644 --- a/layout/_partial/widgets/toc.ejs +++ b/layout/_partial/widgets/toc.ejs @@ -55,10 +55,12 @@ function layoutDiv(fallback) { el += icon('default:upup') el += `${__('btn.top')}` el += `` - el += `` - el += icon('default:tocomment') - el += `${__('btn.bottom')}` - el += `` + if (page.comments) { + el += `` + el += icon('default:tocomment') + el += `${__('btn.comments')}` + el += `` + } el += `` el += `` return el diff --git a/source/css/_plugins/comments/twikoo.styl b/source/css/_plugins/comments/twikoo.styl index 677aec3..89b15f6 100644 --- a/source/css/_plugins/comments/twikoo.styl +++ b/source/css/_plugins/comments/twikoo.styl @@ -162,9 +162,3 @@ .tk-comments-no color: var(--text-p1) - -if theme(dark) - _dark_comments() -else if theme(auto) - @media (prefers-color-scheme: dark) - _dark_comments()