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:
Vivek R 2019-12-30 19:24:36 +05:30 committed by GitHub
commit 0c0c28e696
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 -}}