mirror of
https://github.com/gnu4cn/ts-learnings.git
synced 2024-12-25 12:20:16 +08:00
Updated 'theme/index.hbs'.
This commit is contained in:
parent
f6b9e0af92
commit
a267b50e25
@ -17,7 +17,6 @@ additional-css = ["theme/pagetoc.css"]
|
||||
additional-js = ["theme/pagetoc.js"]
|
||||
git-repository-url = "https://github.com/gnu4cn/ts-learnings"
|
||||
git-repository-icon = "fa-github"
|
||||
google-analytics="G-VP1TNZE5KK"
|
||||
|
||||
[output.html.print]
|
||||
enable = false
|
||||
|
@ -242,25 +242,6 @@
|
||||
</script>
|
||||
{{/if}}
|
||||
|
||||
{{#if google_analytics}}
|
||||
<!-- Google Analytics Tag -->
|
||||
<script>
|
||||
var localAddrs = ["localhost", "127.0.0.1", ""];
|
||||
|
||||
// make sure we don't activate google analytics if the developer is
|
||||
// inspecting the book locally...
|
||||
if (localAddrs.indexOf(document.location.hostname) === -1) {
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '{{google_analytics}}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
</script>
|
||||
{{/if}}
|
||||
|
||||
{{#if playground_line_numbers}}
|
||||
<script>
|
||||
window.playground_line_numbers = true;
|
||||
@ -316,4 +297,9 @@
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7565332882098911"
|
||||
crossorigin="anonymous"></script>
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7565332882098911"
|
||||
crossorigin="anonymous"></script>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user