This commit is contained in:
2025-05-14 18:46:58 +08:00
parent b6ca38d72b
commit fd6471e64e
2 changed files with 47 additions and 2 deletions
@@ -29,13 +29,16 @@ mixin rightsideItem(array)
if commentsJsLoad
a#to_comment(href="#post-comment" title=_p("rightside.scroll_to_comment"))
i.fas.fa-comments
when 'xxxx'
button#xxxx(type="button" title="测试按钮")
i.fas.fa-xxxx
#rightside
- const { enable, hide, show } = theme.rightside_item_order
- const hideArray = enable ? hide && hide.split(',') : ['readmode','translate','darkmode','hideAside']
- const hideArray = enable ? hide && hide.split(',') : ['readmode','translate','darkmode','hideAside', 'xxxx']
- const showArray = enable ? show && show.split(',') : ['toc','chat','comment']
#rightside-config-hide
if hideArray
+rightsideItem(hideArray)