mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-17 04:40:53 +08:00
feat: toc改為aside顯示,去掉sidebar feat: 手機toc ui 修改 feat: 去掉 toc auto_open 配置 feat: 文章標題改為居中 improvement: 完善note標籤在readmode上的顯示 improvement: 精簡css 和 js improvement: pjax 優化 fix: 修復當文章頁top_img設為false時,閲讀模式下文章內容不顯示的bugs
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
- var hideAside = !theme.aside.enable || page.aside === false ? 'hide-aside' : ''
|
|
|
|
doctype html
|
|
html(lang=config.language data-theme=theme.display_mode)
|
|
head
|
|
include ./head.pug
|
|
body
|
|
if theme.preloader
|
|
!=partial('includes/loading/loading', {}, {cache:theme.fragment_cache})
|
|
|
|
if theme.background
|
|
#web_bg
|
|
|
|
!=partial('includes/mobile-sidebar/index', {}, {cache:theme.fragment_cache})
|
|
|
|
#body-wrap
|
|
include ./header/index.pug
|
|
|
|
main#content-inner.layout(class=hideAside)
|
|
if body
|
|
div!= body
|
|
else
|
|
block content
|
|
if theme.aside.enable && page.aside !== false
|
|
include widget/index.pug
|
|
|
|
- var footerBg = theme.footer_bg
|
|
if (footerBg)
|
|
if (footerBg === true)
|
|
- var footer_bg = bg_img
|
|
else
|
|
- var footer_bg = theme.footer_bg.indexOf('/') !== -1 ? `background-image: url(${url_for(footerBg)})` : `background: ${footerBg}`
|
|
else
|
|
- var footer_bg = ''
|
|
|
|
footer#footer(style=footer_bg)
|
|
!=partial('includes/footer', {}, {cache:theme.fragment_cache})
|
|
|
|
include ./rightside.pug
|
|
!=partial('includes/third-party/search/index', {}, {cache:theme.fragment_cache})
|
|
include ./additional-js.pug |