diff --git a/layout/includes/additional-js.pug b/layout/includes/additional-js.pug index 302e207..9585a7b 100644 --- a/layout/includes/additional-js.pug +++ b/layout/includes/additional-js.pug @@ -58,4 +58,4 @@ div if theme.google_tag_manager && theme.google_tag_manager.tag_id noscript - iframe(src=`${theme.google_tag_manager.domain ? theme.google_tag_manager.domain : 'https://www.googletagmanager.com'}/ns.html?id=${theme.google_tag_manager.tag_id}` height="0" width="0" style="display:none;visibility:hidden") + iframe(src=`${theme.google_tag_manager.domain ? theme.google_tag_manager.domain : 'https://www.googletagmanager.com'}/ns.html?id=${theme.google_tag_manager.tag_id}` height="0" width="0" style="display:none;visibility:hidden") \ No newline at end of file diff --git a/layout/includes/third-party/umami_analytics.pug b/layout/includes/third-party/umami_analytics.pug index 7e02913..14f1fd6 100644 --- a/layout/includes/third-party/umami_analytics.pug +++ b/layout/includes/third-party/umami_analytics.pug @@ -31,7 +31,7 @@ script. const getData = async (isPost) => { try { const now = Date.now() - const keyUrl = isPost ? `&url=${window.location.pathname}` : '' + const keyUrl = isPost ? `&url=${window.location.pathname}&path=${window.location.pathname}` : '' const headerList = { 'Accept': 'application/json' } if (!{isServerURL}) { diff --git a/package.json b/package.json index ed83f4e..ef4df59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "5.5.3-b1", + "version": "5.5.3-b2", "description": "A Simple and Card UI Design theme for Hexo", "main": "package.json", "scripts": { diff --git a/source/css/_mode/darkmode.styl b/source/css/_mode/darkmode.styl index 28d0893..1452ab4 100644 --- a/source/css/_mode/darkmode.styl +++ b/source/css/_mode/darkmode.styl @@ -130,6 +130,7 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark' // hide-tags .hide-button, + .toggle-button, #post-outdate-notice, .error-img, .container iframe, diff --git a/source/css/_tags/hide.styl b/source/css/_tags/hide.styl index 69cc57a..c1734aa 100644 --- a/source/css/_tags/hide.styl +++ b/source/css/_tags/hide.styl @@ -39,11 +39,26 @@ border: 1px solid $tag-hide-toggle-bg addBorderRadius(5, true) + & > .toggle-content + margin: 30px 24px + & > .toggle-button padding: 6px 15px background: $tag-hide-toggle-bg color: #1F2D3D + list-style: none cursor: pointer - & > .toggle-content - margin: 30px 24px + &::-webkit-details-marker + display: none + + &::before + @extend .fontawesomeIcon + margin-right: 8px + content: '\f0d7' + transition: transform .3s ease + transform: rotate(-90deg) + transform-origin: center center + + &[open] summary::before + transform: rotate(0) \ No newline at end of file