添加cnzz站点统计
This commit is contained in:
parent
b2be8ca430
commit
7df647eef0
|
@ -55,7 +55,7 @@ module.exports = {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
nav: [{
|
nav: [{
|
||||||
text: '首页', link: '/'
|
text: '首页', link: '/index.html'
|
||||||
}, {
|
}, {
|
||||||
text: 'core内核 指南',
|
text: 'core内核 指南',
|
||||||
link: '/guide/diboot-core/安装'
|
link: '/guide/diboot-core/安装'
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
var gulp = require('gulp');
|
||||||
|
var insertString = require('gulp-insert-string-into-tag');
|
||||||
|
|
||||||
|
gulp.task('default', function () {
|
||||||
|
return gulp.src('.vuepress/dist/index.html')
|
||||||
|
.pipe(insertString.append({
|
||||||
|
startTag:'<body>',
|
||||||
|
endTag:'</body>',
|
||||||
|
string:`<style type="text/css">
|
||||||
|
#cnzz_stat_icon_1278228116{
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1278228116'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s9.cnzz.com/z_stat.php%3Fid%3D1278228116%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>`
|
||||||
|
}))
|
||||||
|
.pipe(gulp.dest('.vuepress/dist'));
|
||||||
|
});
|
|
@ -8,6 +8,9 @@
|
||||||
},
|
},
|
||||||
"author": "yang",
|
"author": "yang",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {},
|
||||||
|
"devDependencies": {
|
||||||
|
"gulp": "^4.0.2",
|
||||||
|
"gulp-insert-string-into-tag": "^1.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue