{{- $page := .page -}}
{{- $kind := .kind -}}
{{- $now := now }}

{{- $bundle := $page.Page.GetPage "/events" -}}
{{- with $bundle -}}
    {{- $events := .Resources.Match (printf "%ss/**.md" $kind) -}}
    {{- if gt (len $events) 0 -}}
        <div class="{{ printf "%s-container" $kind }}">
            {{- range $events -}}

                {{- if .Params.draft -}}
                    {{/* do nothing */}}
                {{- else -}}
                    {{- $latest_release := "" -}}
                    {{- 