Merge pull request #22579 from tengqm/disable-analytics-in-non-production
Disable analytics for non-production environmentpull/22558/head
commit
91494d2e3c
|
@ -3,9 +3,11 @@
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
<div class="issue-button-container">
|
<div class="issue-button-container">
|
||||||
|
{{ if eq (getenv "HUGO_ENV") "production" }}
|
||||||
<p>
|
<p>
|
||||||
<a href=""><img alt="Analytics" src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/{{ .Path }}?pixel"/></a>
|
<a href=""><img alt="Analytics" src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/{{ .Path }}?pixel"/></a>
|
||||||
</p>
|
</p>
|
||||||
|
{{ end }}
|
||||||
{{ if and (ne .Kind "404") (not (strings.Contains .Path "search")) }}
|
{{ if and (ne .Kind "404") (not (strings.Contains .Path "search")) }}
|
||||||
{{ if not .Params.no_issue }}
|
{{ if not .Params.no_issue }}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Reference in New Issue