Skip to content

Commit

Permalink
fix: 修復標題/博客名有 ‘ 時,pjax 會報錯的bug
Browse files Browse the repository at this point in the history
improvement: css調整
  • Loading branch information
jerryc127 committed May 8, 2021
1 parent f4e5cef commit c439930
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion layout/includes/head/config_site.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions source/css/_layout/post.styl
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ no-beautify()
else
no-beautify()

> :last-child
margin-bottom: 0 !important

#post
.tag_share
.post-meta
Expand Down

0 comments on commit c439930

Please sign in to comment.