Merge pull request #34 from mahito1594/feature/disable-ga-when-server
Disable Google Analytics when the site being served with build-in server
This commit is contained in:
commit
972d3cef54
@ -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