BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//FreeBSD//events calendar//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH

{{ $data := index .Site.Data .Sites.First.Language.Lang }}
{{ $eventsData := $data }}
{{ with $eventsData }}
  {{ range (sort .events "year" "desc") }}
    {{ range (sort .events "startDate" "desc") }}
BEGIN:VEVENT
SEQUENCE:0
SUMMARY:{{ .name }}
URL;VALUE=URI:{{ .url }}
LOCATION:{{ .site }}, {{ .city }}, {{ .country }}
DTSTART;VALUE=DATE:20200319{{ dateFormat "20060102" .startDate }}
DTEND;VALUE=DATE:20200322{{ dateFormat "20060102" .endDate }}
DESCRIPTION:{{ .description }}
END:VEVENT
    {{ end }}
  {{ end }}
{{ end }}
END:VCALENDAR
