{{ define "main" }}
{{ $monthCount := 3 }}
{{ $now:= time.Now }}
{{/* The first of the month has to be a 00:00:00 hours otherwise the math goes wonky */}}
{{ $start := print ($now.Format "2006-01") "-01" }}
{{ $startDate := time.AsTime $start "CET" }}
{{ $data := site.Store.Get "calendar" }}
{{ $datetypes := slice "date-time" "date" }}
{{ $events := slice }}
{{/*  parse all the start and end times into local  */}}
{{ range (index $data 2) }}
  {{ $oldEvent := . }}
  {{ $event := dict }}
  {{ range (index $o