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},

View File

@ -1,6 +1,6 @@
{
"name": "hexo-theme-butterfly",
"version": "3.7.5",
"version": "3.7.6",
"description": "A Simple and Card UI Design theme for Hexo",
"main": "package.json",
"scripts": {

View File

@ -185,6 +185,9 @@ no-beautify()
else
no-beautify()
> :last-child
margin-bottom: 0 !important
#post
.tag_share
.post-meta