mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 14:22:01 +08:00
feat: 只支持 hexo 5.0.0 及以上版本
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
This commit is contained in:
1 parent
b078ebef14
commit
83b7232841
31 files changed
+291
-506
No files matched your search
@@ -93,7 +93,6 @@
|
||||
script.
|
||||
var GLOBAL_CONFIG = {
|
||||
root: '!{config.root}',
|
||||
hexoversion: '!{get_hexo_version()}',
|
||||
algolia: !{algolia},
|
||||
localSearch: !{localSearch},
|
||||
translate: !{translate},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
else isHighlightShrink = theme.highlight_shrink
|
||||
|
||||
const pageToc = page.toc === true || page.toc === false ? page.toc : theme.toc.enable
|
||||
const showToc = is_post() && pageToc && (toc(page.content) !== '' || page.encrypt == true )
|
||||
const showToc = is_post() && theme.aside.enable && pageToc && (toc(page.content) !== '' || page.encrypt == true )
|
||||
-
|
||||
|
||||
script#config_change
|
||||
@@ -14,6 +14,6 @@ script#config_change
|
||||
isPost: !{is_post()},
|
||||
isHome: !{is_home()},
|
||||
isHighlightShrink: !{isHighlightShrink},
|
||||
isSidebar: !{showToc},
|
||||
isToc: !{showToc},
|
||||
postUpdate: '!{full_date(page.updated)}'
|
||||
}
|
||||
+11
-19
@@ -8,30 +8,22 @@ html(lang=config.language data-theme=theme.display_mode)
|
||||
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
|
||||
if theme.background
|
||||
#web_bg
|
||||
|
||||
include ./sidebar.pug
|
||||
include ./header/index.pug
|
||||
|
||||
if (!is_post())
|
||||
main#content-inner.layout_page(class=hideAside)
|
||||
if body
|
||||
div!= body
|
||||
else
|
||||
block content
|
||||
if theme.aside.enable && page.aside !== false
|
||||
!=partial('includes/widget/index', {}, {cache:theme.fragment_cache})
|
||||
else
|
||||
main#content-inner.layout_post
|
||||
if body
|
||||
div!= body
|
||||
else
|
||||
block content
|
||||
|
||||
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)
|
||||
|
||||
Loaded 3 of 31 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user