We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b2e078 commit e0664cfCopy full SHA for e0664cf
themes/compose/layouts/partials/opengraph.html
@@ -1,6 +1,6 @@
1
{{- template "_internal/opengraph.html" . -}}
2
{{- template "_internal/schema.html" . -}}
3
{{- template "_internal/twitter_cards.html" . -}}
4
-{{- if eq (getenv "HUGO_ENV") "production" }}
5
-{{- template "_internal/google_analytics_async.html" . }}
6
-{{- end }}
+{{- if hugo.IsProduction }}
+ {{- template "_internal/google_analytics.html" . }}
+{{- end -}}
0 commit comments