mirror of
https://github.com/imfing/hextra.git
synced 2025-09-14 06:46:53 -04:00
chore: use with
This commit is contained in:
@@ -7,12 +7,12 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
<!-- Umami -->
|
<!-- Umami -->
|
||||||
{{- if .Site.Params.analytics.umami -}}
|
{{- with .Site.Params.analytics.umami -}}
|
||||||
{{ partial "components/analytics/umami.html" . }}
|
{{ partial "components/analytics/umami.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
<!-- Matomo -->
|
<!-- Matomo -->
|
||||||
{{- if .Site.Params.analytics.matomo -}}
|
{{- with .Site.Params.analytics.matomo -}}
|
||||||
{{ partial "components/analytics/matomo.html" . }}
|
{{ partial "components/analytics/matomo.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
@@ -3,8 +3,6 @@ Matomo Analytics.
|
|||||||
https://developer.matomo.org/guides/tracking-javascript-guide
|
https://developer.matomo.org/guides/tracking-javascript-guide
|
||||||
*/ -}}
|
*/ -}}
|
||||||
|
|
||||||
{{- with .Site.Params.analytics.matomo -}}
|
|
||||||
|
|
||||||
{{- if not .serverURL }}
|
{{- if not .serverURL }}
|
||||||
{{- errorf "Missing Matomo 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}}
|
{{- errorf "Missing Matomo 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -27,5 +25,3 @@ https://developer.matomo.org/guides/tracking-javascript-guide
|
|||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<!-- End Matomo Code -->
|
<!-- End Matomo Code -->
|
||||||
|
|
||||||
{{- end -}}
|
|
||||||
|
@@ -3,8 +3,6 @@ Umami Analytics
|
|||||||
https://umami.is/docs/tracker-configuration
|
https://umami.is/docs/tracker-configuration
|
||||||
*/ -}}
|
*/ -}}
|
||||||
|
|
||||||
{{- with .Site.Params.analytics.umami -}}
|
|
||||||
|
|
||||||
{{- if not .serverURL }}
|
{{- if not .serverURL }}
|
||||||
{{- errorf "Missing Umami 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics" -}}
|
{{- errorf "Missing Umami 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -54,4 +52,3 @@ https://umami.is/docs/tracker-configuration
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<script async defer {{ range $k, $v := ($attributes.Get "umami" ) }} {{ (printf `%s=%q` $k $v) | safeHTMLAttr }}{{- end -}}></script>
|
<script async defer {{ range $k, $v := ($attributes.Get "umami" ) }} {{ (printf `%s=%q` $k $v) | safeHTMLAttr }}{{- end -}}></script>
|
||||||
{{- end -}}
|
|
||||||
|
Reference in New Issue
Block a user