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

View File

@ -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 -}}