fix: 修復標題/博客名有 ‘ 時,pjax 會報錯的bug

improvement: css調整
This commit is contained in:
Jerry
2021-05-09 00:53:56 +08:00
parent 92121d7bbe
commit 36527a3b81
3 changed files with 7 additions and 2 deletions

View File

@@ -6,11 +6,13 @@
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 )
let titleVal = pageTitle.replace(/'/ig,"\\'")
-
script#config-diff.
var GLOBAL_CONFIG_SITE = {
title: '!{pageTitle}',
title: '!{titleVal}',
isPost: !{is_post()},
isHome: !{is_home()},
isHighlightShrink: !{isHighlightShrink},