fix validar warnings
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 1m55s

This commit is contained in:
Paolo Asperti 2024-10-01 21:09:47 +02:00
parent b02e2a0c4a
commit 01625aa2e0
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -5,9 +5,7 @@ X-WR-CALNAME:BgLUG Events Calendar
X-WR-TIMEZONE:Europe/Rome
CALSCALE:GREGORIAN
METHOD:PUBLISH
{{range where .Site.Pages ".Page.Params.add_to_ics" true -}}
{{- range where .Site.Pages ".Page.Params.add_to_ics" true -}}
{{- $location := "" -}}
{{- $locations := .Params.locations -}}
{{- with (eq (printf "%T" $locations ) "string" ) -}}
@ -16,10 +14,9 @@ METHOD:PUBLISH
{{- with (eq (printf "%T" $locations ) "[]string" ) -}}
{{- $location = (index $locations 0) -}}
{{- end -}}
{{ if .Params.location_ics }}
{{- if .Params.location_ics }}
{{- $location = .Params.location_ics }}
{{- end }}
BEGIN:VEVENT
SUMMARY:{{.Title}}
ORGANIZER;{{ .Site.Param "ics.organizer" }}
@ -35,9 +32,7 @@ URL:{{ .Permalink }}
{{- $d := time.AsTime .Date }}
{{- $duration := .Params.duration | default "1h" }}
DTEND;TZID=Europe/Rome:{{dateFormat "20060102T150405Z" ($d.Add (time.ParseDuration $duration) ) }}
{{ end -}}
{{- end -}}
END:VEVENT
{{end -}}
{{- end -}}
END:VCALENDAR