mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 19:50:55 +08:00
fix: 百度統計適配pjax #516
This commit is contained in:
8
layout/includes/third-party/pjax.pug
vendored
8
layout/includes/third-party/pjax.pug
vendored
@@ -42,9 +42,11 @@ script.
|
|||||||
typeof chatBtnFn === 'function' && chatBtnFn()
|
typeof chatBtnFn === 'function' && chatBtnFn()
|
||||||
typeof panguInit === 'function' && panguInit()
|
typeof panguInit === 'function' && panguInit()
|
||||||
|
|
||||||
if (typeof gtag === 'function') {
|
// google analytics
|
||||||
gtag('config', '!{theme.google_analytics}', {'page_path': window.location.pathname});
|
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()
|
typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "3.7.0-b5",
|
"version": "3.7.0-b6",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -164,16 +164,16 @@ no-beautify()
|
|||||||
kbd
|
kbd
|
||||||
margin: 0 3px
|
margin: 0 3px
|
||||||
padding: 3px 5px
|
padding: 3px 5px
|
||||||
border-radius: 3px
|
|
||||||
border: 1px solid #b4b4b4
|
border: 1px solid #b4b4b4
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 2px 1px 0 rgba(255,255,255,.6) inset
|
border-radius: 3px
|
||||||
font-family: Monaco, 'Ubuntu Mono', monospace
|
|
||||||
font-size: 0.9em
|
|
||||||
font-weight: 600
|
|
||||||
background-color: #f8f8f8
|
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
|
color: #34495e
|
||||||
line-height: 1em
|
|
||||||
white-space: nowrap
|
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'
|
if hexo-config('beautify.enable') && hexo-config('beautify.field') == 'site'
|
||||||
beautify()
|
beautify()
|
||||||
|
|||||||
@@ -165,9 +165,9 @@ if hexo-config('readmode')
|
|||||||
|
|
||||||
kbd
|
kbd
|
||||||
border: 1px solid var(--gray)
|
border: 1px solid var(--gray)
|
||||||
color: var(--font-color)
|
|
||||||
box-shadow: none
|
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
|
box-shadow: none
|
||||||
|
color: var(--font-color)
|
||||||
|
|
||||||
.hide-toggle
|
.hide-toggle
|
||||||
border: 1px solid var(--gray) !important
|
border: 1px solid var(--gray) !important
|
||||||
|
|||||||
Reference in New Issue
Block a user