Disable Google Analytics when hugo server
This commit is contained in:
parent
8961042aa1
commit
de58726d3b
@ -4,7 +4,9 @@
|
|||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{ if not .Site.IsServer }}
|
||||||
{{ template "_internal/google_analytics_async.html" . }}
|
{{ template "_internal/google_analytics_async.html" . }}
|
||||||
|
{{ end }}
|
||||||
{{- with .Site.Params.Social -}}
|
{{- with .Site.Params.Social -}}
|
||||||
<script>feather.replace()</script>
|
<script>feather.replace()</script>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user