BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//FreeBSD//events calendar//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH{{ $data := index hugo.Data hugo.Sites.Default.Language.Lang }}{{ $eventsData := $data }}{{ with $eventsData }}{{ range (sort .events "year" "desc") }}{{ range (sort .events "startDate" "desc") }}
BEGIN:VEVENT
UID:{{ .id }}
SUMMARY:{{ .name }}
URL;VALUE=URI:{{ .url }}
LOCATION:{{ .site }}, {{ .city }}, {{ .country }}
DTSTART;VALUE=DATE:{{ dateFormat "20060102" .startDate }}
DTEND;VALUE=DATE:{{ dateFormat "20060102" .endDate }}
DESCRIPTION:{{ .description }}
END:VEVENT{{ end }}{{ end }}{{ end }}
END:VCALENDAR
