fix: 百度統計適配pjax #516

This commit is contained in:
Jerry 2021-03-04 16:22:04 +08:00
parent 6cba95298a
commit 2f3094cc0a
4 changed files with 14 additions and 12 deletions

View File

@ -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()

View File

@ -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": {

View File

@ -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()

View File

@ -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