mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
20 lines
717 B
Plaintext
20 lines
717 B
Plaintext
-
|
|
let isHighlightShrink
|
|
if (theme.highlight_shrink == 'none') isHighlightShrink = 'undefined'
|
|
else if (page.highlight_shrink === true || page.highlight_shrink === false) isHighlightShrink = page.highlight_shrink
|
|
else isHighlightShrink = theme.highlight_shrink
|
|
|
|
var pageToc = page.toc === true || page.toc === false ? page.toc : theme.toc.enable
|
|
var showToc = is_post() && theme.aside.enable && pageToc && (toc(page.content) !== '' || page.encrypt == true )
|
|
-
|
|
|
|
script#config-diff.
|
|
var GLOBAL_CONFIG_SITE = {
|
|
title: '!{pageTitle}',
|
|
isPost: !{is_post()},
|
|
isHome: !{is_home()},
|
|
isHighlightShrink: !{isHighlightShrink},
|
|
isToc: !{showToc},
|
|
postUpdate: '!{full_date(page.updated)}'
|
|
}
|