feat: aside 可配置隐藏/增加按钮可展开或收缩aside

This commit is contained in:
Jerry
2020-10-21 21:54:14 +08:00
parent c54f23bc14
commit 6b35388f33
8 changed files with 30 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
- var htmlClassHideAside = theme.aside.enable && theme.aside.hide ? 'hide-aside' : ''
- var hideAside = !theme.aside.enable || page.aside === false ? 'hide-aside' : ''
doctype html
html(lang=config.language data-theme=theme.display_mode)
html(lang=config.language data-theme=theme.display_mode class=htmlClassHideAside)
head
include ./head.pug
body

View File

@@ -23,6 +23,10 @@
button#rightside_config(type="button" title=_p("rightside.setting"))
i.fas.fa-cog
if theme.aside.enable && theme.aside.button
button#hide-aside-btn(type="button")
i.fas.fa-arrows-alt-h
if theme.chat_btn
button#chat_btn(type="button" title=_p("rightside.chat_btn"))
i.fas.fa-sms