百度统计

This commit is contained in:
huanqing.shao
2019-08-29 20:31:13 +08:00
parent 9c1cd36e26
commit b92e01830e
4 changed files with 10 additions and 14 deletions

View File

@ -1,9 +0,0 @@
export default function installBaiduTongji () {
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?5434e5c7a3fe924c0d6c5bd6f0eae56b";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
}

View File

@ -71,13 +71,11 @@
<script>
import NavLink from '@theme/components/NavLink.vue'
import installBaiduTongji from '../baidutongji.js'
export default {
components: { NavLink },
mounted () {
window.document.title = 'Kuboard - Kubernetes 安装文档/教程/实践/管理界面'
installBaiduTongji()
},
computed: {
data () {

View File

@ -4,7 +4,16 @@ module.exports = {
title: 'Kuboard - Kubernetes k8s 安装文档/免费教程/实践/管理界面',
description: '一个非常 cool 的 Kubernetes Dashboard简化 Kubernetes 的学习和使用,帮助您快速落地 Kubernetes同时提供 Spring Cloud 微服务部署教程DevOps教程',
head: [
['meta', {name: 'keywords', content: 'Kubernetes, Docker, Dashboard, Kuboard, Spring Cloud, micro service, DevOps, 微服务, 持续构建集成, 容器, Kubernetes 教程, K8S 教程, 微服务实践, Kubernetes 安装'}]
['meta', {name: 'keywords', content: 'Kubernetes, Docker, Dashboard, Kuboard, Spring Cloud, micro service, DevOps, 微服务, 持续构建集成, 容器, Kubernetes 教程, K8S 教程, 微服务实践, Kubernetes 安装'}],
['script', {}, `
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?5434e5c7a3fe924c0d6c5bd6f0eae56b";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`]
],
markdown: {
toc: { includeLevel: [2, 3] },

View File

@ -30,11 +30,9 @@
<script>
import ParentLayout from '@parent-theme/layouts/Layout.vue'
import installBaiduTongji from '../../baidutongji.js'
export default {
mounted () {
installBaiduTongji()
},
components: {
ParentLayout