mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
✨ 可設置取消谷歌自動廣告代碼加載 🐛 修復pjax下側邊欄分類打開/收縮按鈕 直接跳轉的bugs 🐛 修復代碼塊向右偏移的bugs 🐛 修復子目錄下,404頁面的回到首頁鏈接錯誤的bugs
45 lines
1.4 KiB
Plaintext
45 lines
1.4 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.fireworks && theme.fireworks.enable
|
|
canvas.fireworks
|
|
|
|
!=partial('includes/mobile-sidebar/index', {}, {cache:theme.fragment_cache})
|
|
|
|
#body-wrap
|
|
if theme.background
|
|
- var is_photo = theme.background.startsWith('url') ? 'photo':'color'
|
|
#web_bg(data-type=is_photo)
|
|
|
|
include ./sidebar.pug
|
|
include ./header/index.pug
|
|
|
|
if (!is_post())
|
|
main#content-inner.layout_page(class=hideAside)
|
|
if body
|
|
div!= body
|
|
else
|
|
block content
|
|
include widget/index.pug
|
|
else
|
|
main#content-inner.layout_post
|
|
if body
|
|
div!= body
|
|
else
|
|
block content
|
|
|
|
- var footer_bg = theme.footer_bg == false ? '' : bg_img
|
|
- var is_bg = theme.footer_bg == false ? 'color' : 'photo'
|
|
footer#footer(style=footer_bg data-type=is_bg)
|
|
!=partial('includes/footer', {}, {cache:theme.fragment_cache})
|
|
|
|
include ./rightside.pug
|
|
!=partial('includes/search/index', {}, {cache:theme.fragment_cache})
|
|
include ./additional-js.pug |