Files
website/themes/solitude/layout/includes/widgets/aside/aside.pug
T
2024-07-05 21:01:19 +08:00

18 lines
700 B
Plaintext

.aside-content#aside-content
- var noSticky, Sticky
if(is_home())
- noSticky = theme.aside.home.noSticky.split(',')
- Sticky = theme.aside.home.Sticky.split(',')
else if(is_post())
- noSticky = theme.aside.post.noSticky.split(',')
- Sticky = theme.aside.post.Sticky.split(',')
else if(is_page() || is_archive() || is_tag() || is_category())
- noSticky = theme.aside.page.noSticky.split(',')
- Sticky = theme.aside.page.Sticky.split(',')
each item in noSticky
include ./asideSwitch.pug
.sticky_layout
if page.toc
include ./asideToc.pug
each item in Sticky
include ./asideSwitch.pug