mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
feat: aside 可配置隐藏/增加按钮可展开或收缩aside
This commit is contained in:
1 parent
c54f23bc14
commit
6b35388f33
8 files changed
+30
-3
No files matched your search
@@ -600,6 +600,8 @@ preloader: false
|
|||||||
|
|
||||||
aside:
|
aside:
|
||||||
enable: true
|
enable: true
|
||||||
|
hide: false
|
||||||
|
button: true
|
||||||
mobile: true # display on mobile
|
mobile: true # display on mobile
|
||||||
position: right # left or right
|
position: right # left or right
|
||||||
card_author:
|
card_author:
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
- var htmlClassHideAside = theme.aside.enable && theme.aside.hide ? 'hide-aside' : ''
|
||||||
- var hideAside = !theme.aside.enable || page.aside === false ? 'hide-aside' : ''
|
- var hideAside = !theme.aside.enable || page.aside === false ? 'hide-aside' : ''
|
||||||
|
|
||||||
doctype html
|
doctype html
|
||||||
html(lang=config.language data-theme=theme.display_mode)
|
html(lang=config.language data-theme=theme.display_mode class=htmlClassHideAside)
|
||||||
head
|
head
|
||||||
include ./head.pug
|
include ./head.pug
|
||||||
body
|
body
|
||||||
|
|||||||
@@ -23,6 +23,10 @@
|
|||||||
button#rightside_config(type="button" title=_p("rightside.setting"))
|
button#rightside_config(type="button" title=_p("rightside.setting"))
|
||||||
i.fas.fa-cog
|
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
|
if theme.chat_btn
|
||||||
button#chat_btn(type="button" title=_p("rightside.chat_btn"))
|
button#chat_btn(type="button" title=_p("rightside.chat_btn"))
|
||||||
i.fas.fa-sms
|
i.fas.fa-sms
|
||||||
|
|||||||
Loaded 3 of 8 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user