Skip to content

Commit

Permalink
added growingio script
Browse files Browse the repository at this point in the history
  • Loading branch information
john-deng committed Dec 4, 2018
1 parent 50d368a commit 4441733
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/reading/20180817/video.md
Expand Up @@ -4,4 +4,4 @@ title: sync.Pool 源码分析及适用场景

## 观看视频

{{< youtube id="jaepwn2PWPk" >}}
{{< youtube id="jaepwn2PWPk" >}}
2 changes: 1 addition & 1 deletion themes/hugo-material-docs/layouts/partials/head.html
Expand Up @@ -71,11 +71,11 @@
<link rel="stylesheet" href="{{ . | absURL }}">
{{ end }}
<script src="{{ "javascripts/modernizr.js" | absURL }}"></script>
<script src="{{ "javascripts/growingio.js" | absURL }}"></script>

{{ with .RSSLink }}
<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }}

</head>
<body class="{{ with .Site.Params.palette.primary }}palette-primary-{{ . }}{{end }} {{ with .Site.Params.palette.accent }}palette-accent-{{ . }}{{ end }}">
13 changes: 13 additions & 0 deletions themes/hugo-material-docs/static/javascripts/growingio.js
@@ -0,0 +1,13 @@
var _vds = _vds || [];
window._vds = _vds;
(function(){
_vds.push(['setAccountId', 'b5ceca26ced64330bc071c17f1bc12fa']);
(function() {
var vds = document.createElement('script');
vds.type='text/javascript';
vds.async = true;
vds.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'assets.growingio.com/vds.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(vds, s);
})();
})();

0 comments on commit 4441733

Please sign in to comment.