{{- /* Event urls are stored root-relative; strip the leading slash so relURL
prepends the baseURL subpath, keeping event clicks working when the site
is served from a subdirectory. */ -}}
{{- $events := slice }}
{{- range .Params.events }}
{{- $e := . }}
{{- with .url }}{{ $e = merge $e (dict "url" (strings.TrimPrefix "/" . | relURL)) }}{{ end }}
{{- $events = $events | append $e }}
{{- end }}