Disable analytics for non-production environment
The analytics code/link is not always working. It takes about 33 seconds to fail when building local sites for testing, and that is terrible. This PR disables the analytics in non-production environment, so local build starts up in seconds!pull/22579/head
parent
1943aaafd6
commit
bf11d5a744
|
@ -3,9 +3,11 @@
|
|||
<hr/>
|
||||
|
||||
<div class="issue-button-container">
|
||||
{{ if eq (getenv "HUGO_ENV") "production" }}
|
||||
<p>
|
||||
<a href=""><img alt="Analytics" src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/{{ .Path }}?pixel"/></a>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ if and (ne .Kind "404") (not (strings.Contains .Path "search")) }}
|
||||
{{ if not .Params.no_issue }}
|
||||
<script type="text/javascript">
|
||||
|
|
Loading…
Reference in New Issue