mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
✨ 增加mac light 代碼框 ✨ 增加文章過期提醒配置 ✨ 文章copyright 可單獨配置 ✨ card-category 中category名稱和數字限制一行顯示 ✨ 簡繁轉換優化,placeholder文字也會被轉換 🐛 修復配置PWA參數時,如果網站是子目錄時,會出現加載不到文件的bugs 調整當card-category有收縮按鈕時的顯示佈局
48 lines
1.6 KiB
Plaintext
48 lines
1.6 KiB
Plaintext
- var hideAside = !theme.aside.enable || page.aside === false ? 'hide-aside' : ''
|
|
- var pageHighlightShrinkSet = page.highlight_shrink === true || page.highlight_shrink === false ? page.highlight_shrink : theme.highlight_shrink
|
|
- var pageHighlightShrink = theme.highlight_shrink !== 'none' && pageHighlightShrinkSet ? 'code-close' : ''
|
|
|
|
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})
|
|
|
|
include ./sidebar.pug
|
|
|
|
#body-wrap(class=pageHighlightShrink)
|
|
if theme.background
|
|
- var is_photo = theme.background.startsWith('url') ? 'photo':'color'
|
|
#web_bg(data-type=is_photo)
|
|
|
|
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 |