diff --git a/_config.yml b/_config.yml index d6f20b9..aa44089 100644 --- a/_config.yml +++ b/_config.yml @@ -86,6 +86,9 @@ avatar: img: effect: false +# Disable all banner image +disable_top_img: false + # The banner image of home page index_img: diff --git a/layout/includes/header/index.pug b/layout/includes/header/index.pug index 7c99d45..bb821f5 100644 --- a/layout/includes/header/index.pug +++ b/layout/includes/header/index.pug @@ -1,4 +1,4 @@ -if page.top_img !== false +if !theme.disable_top_img && page.top_img !== false if is_post() - var top_img = page.top_img || page.cover || page.randomcover || theme.default_top_img else if is_page() diff --git a/layout/includes/third-party/comments/twikoo.pug b/layout/includes/third-party/comments/twikoo.pug index e28233c..d47a5d5 100644 --- a/layout/includes/third-party/comments/twikoo.pug +++ b/layout/includes/third-party/comments/twikoo.pug @@ -21,6 +21,7 @@ script. const getCount = () => { twikoo.getCommentsCount({ envId: '!{theme.twikoo.envId}', + region: '!{theme.twikoo.region}', urls: [window.location.pathname], includeReply: false }).then(function (res) { diff --git a/package.json b/package.json index 2b6d80d..f3dda9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "3.5.1", + "version": "3.6.0-b1", "description": "A Simple and Card UI Design theme for Hexo", "main": "package.json", "scripts": { diff --git a/source/css/_layout/third-party.styl b/source/css/_layout/third-party.styl index 334c4a4..af709f3 100644 --- a/source/css/_layout/third-party.styl +++ b/source/css/_layout/third-party.styl @@ -10,10 +10,6 @@ &:hover background: var(--btn-hover-color) - textarea - &:focus - background-image: none - .vimg transition: all .3s @@ -30,11 +26,17 @@ if hexo-config('valine.bg') textarea background: url(hexo-config('valine.bg')) 100% 100% no-repeat + &:focus + background-image: none + if hexo-config('waline.bg') #waline-wrap textarea background: url(hexo-config('waline.bg')) 100% 100% no-repeat + &:focus + background-image: none + .fireworks position: fixed top: 0 diff --git a/source/css/_mode/readmode.styl b/source/css/_mode/readmode.styl index b1ee497..77a5d84 100644 --- a/source/css/_mode/readmode.styl +++ b/source/css/_mode/readmode.styl @@ -60,7 +60,6 @@ if hexo-config('readmode') opacity: 0 & > #post-info - padding: 0 text-align: center #post