{{ $data := .Site.Data.events.kubecon }} {{ range $data.events -}} {{ $startDate := time.AsTime .start_date -}} {{ $endDate := time.AsTime .end_date -}} {{ $regionKeys := dict "North America" "kubecon_region_north_america" "Europe" "kubecon_region_europe" "India" "kubecon_region_india" "Japan" "kubecon_region_japan" "China" "kubecon_region_china" "Event" "kubecon_region_event" }} {{ $regionKey := index $regionKeys .region | default "kubecon_region_event" }} {{ $regionName := T $regionKey }} {{ $color := "" }} {{ with .colors }}{{ $color = index . 0 }}{{ end }}
{{ if .location.announced -}} {{ $regionName }} ({{ .location.city }}, {{ $startDate | time.Format "Jan 2" }}–{{ $endDate | time.Format "2" }}) {{ else -}} {{ $regionName }} (TBA) {{ end -}}
{{- end }}