mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 10:15:22 +00:00
Disable Google Analytics in development mode (#569)
This commit is contained in:
1 parent
bcd109acc5
commit
7f744f022b
1 file changed
+2
@@ -77,6 +77,7 @@
|
|||||||
<link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
|
<link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if not .Site.IsServer }}
|
||||||
{{ if .Site.GoogleAnalytics }}
|
{{ if .Site.GoogleAnalytics }}
|
||||||
<script>
|
<script>
|
||||||
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
||||||
@@ -94,6 +95,7 @@
|
|||||||
<script async src="//cdnjs.cloudflare.com/ajax/libs/autotrack/{{- $sri.js.autotrack.version -}}/autotrack.js"></script>
|
<script async src="//cdnjs.cloudflare.com/ajax/libs/autotrack/{{- $sri.js.autotrack.version -}}/autotrack.js"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if or .Site.RSSLink .RSSLink }}
|
{{ if or .Site.RSSLink .RSSLink }}
|
||||||
<link rel="alternate" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
<link rel="alternate" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||||
|
|||||||
Reference in new issue
Block a user