diff --git a/layout/includes/head/config_site.pug b/layout/includes/head/config_site.pug index 2dbd4633f..1d78e982c 100644 --- a/layout/includes/head/config_site.pug +++ b/layout/includes/head/config_site.pug @@ -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}, diff --git a/package.json b/package.json index e61a07713..9b224faee 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/source/css/_layout/post.styl b/source/css/_layout/post.styl index c4f90995b..2785ae145 100644 --- a/source/css/_layout/post.styl +++ b/source/css/_layout/post.styl @@ -185,6 +185,9 @@ no-beautify() else no-beautify() + > :last-child + margin-bottom: 0 !important + #post .tag_share .post-meta