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