Skip to content

Commit

Permalink
remove ga scripts
Browse files Browse the repository at this point in the history
Signed-off-by: William Huang <ai.william@outlook.com>
  • Loading branch information
hex2dec committed Sep 29, 2019
1 parent e7de4a2 commit 6ed67ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ustackdocstheme/theme/ustackdocs/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="col-lg-2 col-sm-2">
<h3>主页</h3>
<ul>
<li><a href="http://www.tfcloud.com/">同方有云</a></li>
<li><a href="https://www.tfcloud.com/">同方有云</a></li>
</ul>
</div>
<div class="col-lg-2 col-sm-2">
Expand Down
16 changes: 1 addition & 15 deletions ustackdocstheme/theme/ustackdocs/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,8 @@
{%- for js in script_files %}
<script type="text/javascript" src="{{ pathto(js, 1) }}"></script>
{%- endfor %}
{# FAVICON #}
{% if favicon %}
<link rel="shortcut icon" href="{{ pathto('_static/favicon.ico') }}"/>
{% endif %}
{% if theme_analytics_tracking_code %}
<!-- Google Analytics -->
<script>
(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','//www.google-analytics.com/analytics.js','ga');

ga('create', '{{ theme_analytics_tracking_code }}', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<link rel="shortcut icon" href="{{ pathto(favicon, 1) }}"/>
{% endif %}
</head>
<body>
Expand Down

0 comments on commit 6ed67ed

Please sign in to comment.