From b99bdc2c969dd3bd5f515ea78f5a8023d468aeaa Mon Sep 17 00:00:00 2001 From: ConstOwn Date: Sun, 6 Sep 2020 11:56:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B3=E4=B8=8B=E8=A7=92=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=201.=E5=BD=93=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=8D=E5=BC=80=E5=90=AF=20=E2=80=9C=E9=98=85=E8=AF=BB?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E3=80=81=E9=BB=91=E6=9A=97=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E3=80=81=E7=AE=80=E7=B9=81=E5=88=87=E6=8D=A2=E2=80=9D=20?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=B8=8D=E6=98=BE=E7=A4=BA=20=E2=80=9C?= =?UTF-8?q?=E9=BD=BF=E8=BD=AE=E2=80=9D=20=E5=9B=BE=E6=A0=87=E3=80=82=202.?= =?UTF-8?q?=E5=BD=93=E7=94=A8=E6=88=B7=E4=BB=85=E5=BC=80=E5=90=AF=20?= =?UTF-8?q?=E2=80=9C=E9=98=85=E8=AF=BB=E6=A8=A1=E5=BC=8F=E2=80=9D=20?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E9=A6=96=E9=A1=B5=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=20=E2=80=9C=E9=BD=BF=E8=BD=AE=E2=80=9D=20=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=EF=BC=8C=E6=96=87=E7=AB=A0=E4=B8=AD=E6=98=BE=E7=A4=BA=20?= =?UTF-8?q?=E2=80=9C=E9=BD=BF=E8=BD=AE=E5=9B=BE=E6=A0=87=E2=80=9D=203.?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E6=83=85=E5=86=B5=E6=AD=A3=E5=B8=B8=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/includes/rightside.pug | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layout/includes/rightside.pug b/layout/includes/rightside.pug index 8c53cee..503a590 100644 --- a/layout/includes/rightside.pug +++ b/layout/includes/rightside.pug @@ -10,8 +10,12 @@ section#rightside button#darkmode(type="button" title=_p('rightside.night_mode_title')) i.fas.fa-adjust #rightside-config-show - button#rightside_config(type="button" title=_p("rightside.setting")) - i.fas.fa-cog + if !(is_post()) && ((theme.translate && theme.translate.enable) || (theme.darkmode.enable && theme.darkmode.button)) + button#rightside_config(type="button" title=_p("rightside.setting")) + i.fas.fa-cog + else if is_post() && (theme.readmode || (theme.translate && theme.translate.enable) || (theme.darkmode.enable && theme.darkmode.button)) + button#rightside_config(type="button" title=_p("rightside.setting")) + i.fas.fa-cog if is_post() && page.comments !== false && theme.comments.use a#to_comment(href="#post-comment" title=_p("rightside.scroll_to_comment")) i.fas.fa-comments