mirror of
				https://github.com/imfing/hextra.git
				synced 2025-10-30 21:50:15 -04:00 
			
		
		
		
	chore: use with
This commit is contained in:
		| @@ -7,12 +7,12 @@ | ||||
| {{- end }} | ||||
|  | ||||
| <!-- Umami --> | ||||
| {{- if .Site.Params.analytics.umami -}} | ||||
| {{- with .Site.Params.analytics.umami -}} | ||||
|   {{ partial "components/analytics/umami.html" . }} | ||||
| {{- end }} | ||||
|  | ||||
| <!-- Matomo --> | ||||
| {{- if .Site.Params.analytics.matomo -}} | ||||
| {{- with .Site.Params.analytics.matomo -}} | ||||
|   {{ partial "components/analytics/matomo.html" . }} | ||||
| {{- end }} | ||||
|  | ||||
|   | ||||
| @@ -3,8 +3,6 @@ Matomo Analytics. | ||||
| https://developer.matomo.org/guides/tracking-javascript-guide | ||||
| */ -}} | ||||
|  | ||||
| {{- with .Site.Params.analytics.matomo -}} | ||||
|  | ||||
| {{- if not .serverURL }} | ||||
|   {{- errorf "Missing Matomo 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}} | ||||
| {{- end -}} | ||||
| @@ -27,5 +25,3 @@ https://developer.matomo.org/guides/tracking-javascript-guide | ||||
|   })(); | ||||
| </script> | ||||
| <!-- End Matomo Code --> | ||||
|  | ||||
| {{- end -}} | ||||
|   | ||||
| @@ -3,8 +3,6 @@ Umami Analytics | ||||
| https://umami.is/docs/tracker-configuration | ||||
| */ -}} | ||||
|  | ||||
| {{- with .Site.Params.analytics.umami -}} | ||||
|  | ||||
| {{- if not .serverURL }} | ||||
|   {{- errorf "Missing Umami 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics" -}} | ||||
| {{- end -}} | ||||
| @@ -54,4 +52,3 @@ https://umami.is/docs/tracker-configuration | ||||
| {{- end -}} | ||||
|  | ||||
| <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
	 Fernandez Ludovic
					Fernandez Ludovic