Disable Google Analytics when hugo server

This commit is contained in:
Mahito TANNO 2019-11-09 23:38:37 +09:00
parent aa5f461c56
commit 6f8908b192
1 changed files with 2 additions and 0 deletions

View File

@ -4,7 +4,9 @@
</nav>
</div>
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{- with .Site.Params.Social -}}
<script>feather.replace()</script>
{{- end -}}