support custom analytics
This commit is contained in:
parent
ecaf84c7c7
commit
5c968f59a2
|
@ -72,8 +72,13 @@
|
||||||
|
|
||||||
{{- /* Misc */}}
|
{{- /* Misc */}}
|
||||||
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
||||||
|
{{- if site.GoogleAnalytics }}
|
||||||
{{- template "_internal/google_analytics.html" . }}
|
{{- template "_internal/google_analytics.html" . }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- if site.Params.useCustomAnalytics }}
|
||||||
|
{{- partialCached "custom_analytics.html" . "custom_analytics.html" }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- /* https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started */}}
|
{{- /* https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started */}}
|
||||||
{{- if .Params.cover.image }}
|
{{- if .Params.cover.image }}
|
||||||
|
|
Loading…
Reference in New Issue