File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 4
4
{{ partial "head.html" . }}
5
5
</ head >
6
6
< body class ="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }} ">
7
- {{- if .Site.GoogleAnalytics -}}
7
+ {{- if hugo.IsProduction -}}{{- if .Site.GoogleAnalytics -}}
8
8
<!-- Google Tag Manager (noscript) -->
9
9
< noscript > < iframe src ="https://www.googletagmanager.com/ns.html?id={{ .Site.GoogleAnalytics }} "
10
10
height ="0 " width ="0 " style ="display:none;visibility:hidden "> </ iframe > </ noscript >
11
11
<!-- End Google Tag Manager (noscript) -->
12
- {{- end -}}
12
+ {{- end -}}{{- end -}}
13
13
< header >
14
14
{{ partial "navbar.html" . }}
15
15
</ header >
Original file line number Diff line number Diff line change 4
4
{{ partial "head.html" . }}
5
5
</ head >
6
6
< body class ="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }} ">
7
- {{- if .Site.GoogleAnalytics -}}
7
+ {{- if hugo.IsProduction -}}{{- if .Site.GoogleAnalytics -}}
8
8
<!-- Google Tag Manager (noscript) -->
9
9
< noscript > < iframe src ="https://www.googletagmanager.com/ns.html?id={{ .Site.GoogleAnalytics }} "
10
10
height ="0 " width ="0 " style ="display:none;visibility:hidden "> </ iframe > </ noscript >
11
11
<!-- End Google Tag Manager (noscript) -->
12
- {{- end -}}
12
+ {{- end -}}{{- end -}}
13
13
< header >
14
14
{{ partial "navbar.html" . }}
15
15
</ header >
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ <h4 class="alert-heading">DRAFT</h4>
65
65
{{ partial "disqus-comment.html" . }}
66
66
{{ end }}
67
67
{{ partial "page-meta-lastmod.html" . }}
68
- {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
68
+ {{- if hugo.IsProduction -}}{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
69
69
{{ partial "feedback.html" . }}
70
70
< br />
71
- {{ end }}
71
+ {{ end }}{{- end -}}
72
72
</ div >
Original file line number Diff line number Diff line change 4
4
{{ partial "head.html" . }}
5
5
</ head >
6
6
< body class ="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }} ">
7
- {{- if .Site.GoogleAnalytics -}}
7
+ {{- if hugo.IsProduction -}}{{- if .Site.GoogleAnalytics -}}
8
8
<!-- Google Tag Manager (noscript) -->
9
9
< noscript > < iframe src ="https://www.googletagmanager.com/ns.html?id={{ .Site.GoogleAnalytics }} "
10
10
height ="0 " width ="0 " style ="display:none;visibility:hidden "> </ iframe > </ noscript >
11
11
<!-- End Google Tag Manager (noscript) -->
12
- {{- end -}}
12
+ {{- end -}}{{- end -}}
13
13
< header >
14
14
{{ partial "navbar.html" . }}
15
15
</ header >
Original file line number Diff line number Diff line change 4
4
{{ partial "head.html" . }}
5
5
</ head >
6
6
< body class ="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }} ">
7
- {{- if .Site.GoogleAnalytics -}}
7
+ {{- if hugo.IsProduction -}}{{- if .Site.GoogleAnalytics -}}
8
8
<!-- Google Tag Manager (noscript) -->
9
9
< noscript > < iframe src ="https://www.googletagmanager.com/ns.html?id={{ .Site.GoogleAnalytics }} "
10
10
height ="0 " width ="0 " style ="display:none;visibility:hidden "> </ iframe > </ noscript >
11
11
<!-- End Google Tag Manager (noscript) -->
12
- {{- end -}}
12
+ {{- end -}}{{- end -}}
13
13
< header >
14
14
{{ partial "navbar.html" . }}
15
15
</ header >
You can’t perform that action at this time.
0 commit comments