添加cnzz站点统计

This commit is contained in:
Zhaoyang 2019-11-22 10:39:40 +08:00
parent b2be8ca430
commit 7df647eef0
4 changed files with 2442 additions and 2 deletions

View File

@ -55,7 +55,7 @@ module.exports = {
]
},
nav: [{
text: '首页', link: '/'
text: '首页', link: '/index.html'
}, {
text: 'core内核 指南',
link: '/guide/diboot-core/安装'

18
diboot-docs/gulpfile.js Normal file
View File

@ -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'));
});

View File

@ -8,6 +8,9 @@
},
"author": "yang",
"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