From 2f3094cc0a47140a87373984d8a0479b5f1646aa Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 4 Mar 2021 16:22:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BE=E5=BA=A6=E7=B5=B1=E8=A8=88?= =?UTF-8?q?=E9=81=A9=E9=85=8Dpjax=20#516?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/includes/third-party/pjax.pug | 8 +++++--- package.json | 2 +- source/css/_layout/post.styl | 12 ++++++------ source/css/_mode/readmode.styl | 4 ++-- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/layout/includes/third-party/pjax.pug b/layout/includes/third-party/pjax.pug index 92c389c..e07371a 100644 --- a/layout/includes/third-party/pjax.pug +++ b/layout/includes/third-party/pjax.pug @@ -42,9 +42,11 @@ script. typeof chatBtnFn === 'function' && chatBtnFn() typeof panguInit === 'function' && panguInit() - if (typeof gtag === 'function') { - gtag('config', '!{theme.google_analytics}', {'page_path': window.location.pathname}); - } + // google analytics + typeof gtag === 'function' && gtag('config', '!{theme.google_analytics}', {'page_path': window.location.pathname}); + + //- // baidu analytics + typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]); typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting() diff --git a/package.json b/package.json index a61d621..79403d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "3.7.0-b5", + "version": "3.7.0-b6", "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 d5a35ca..c4f9099 100644 --- a/source/css/_layout/post.styl +++ b/source/css/_layout/post.styl @@ -164,16 +164,16 @@ no-beautify() kbd margin: 0 3px padding: 3px 5px - border-radius: 3px border: 1px solid #b4b4b4 - box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 2px 1px 0 rgba(255,255,255,.6) inset - font-family: Monaco, 'Ubuntu Mono', monospace - font-size: 0.9em - font-weight: 600 + border-radius: 3px background-color: #f8f8f8 + box-shadow: 0 1px 3px rgba(0, 0, 0, .25), 0 2px 1px 0 rgba(255, 255, 255, .6) inset color: #34495e - line-height: 1em white-space: nowrap + font-weight: 600 + font-size: .9em + font-family: Monaco, 'Ubuntu Mono', monospace + line-height: 1em if hexo-config('beautify.enable') && hexo-config('beautify.field') == 'site' beautify() diff --git a/source/css/_mode/readmode.styl b/source/css/_mode/readmode.styl index 552aa7e..0ef3b36 100644 --- a/source/css/_mode/readmode.styl +++ b/source/css/_mode/readmode.styl @@ -165,9 +165,9 @@ if hexo-config('readmode') kbd border: 1px solid var(--gray) - color: var(--font-color) - box-shadow: none background-color: transparent + box-shadow: none + color: var(--font-color) .hide-toggle border: 1px solid var(--gray) !important