From ed347d66be298e6b045873931ec0de8fec22f43c Mon Sep 17 00:00:00 2001 From: Bridget Kromhout Date: Thu, 28 Dec 2017 13:09:22 -0600 Subject: [PATCH] Add event_group --- layouts/partials/welcome.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/layouts/partials/welcome.html b/layouts/partials/welcome.html index babe97aa5..d2d445e3e 100644 --- a/layouts/partials/welcome.html +++ b/layouts/partials/welcome.html @@ -79,13 +79,25 @@

devopsdays {{$e.city}}

{{- if $e.city -}} {{- $.Scratch.Set "past-counter" 0 -}} {{- range sort $.Site.Data.events "startdate" -}} - {{- if .startdate -}} + {{- if .startdate -}} + + {{- if $e.event_group -}} + {{- if eq .event_group $e.event_group -}} + {{- if and (ne .startdate $e.startdate) (ne ($.Scratch.Get "past-counter") 1 ) -}} + Other {{ $e.event_group }} Events
+ {{- $.Scratch.Set "past-counter" 1 -}} + {{- end -}} + {{- if ne .startdate $e.startdate -}} + {{ dateFormat "2006" .startdate }}    + {{- end -}} + {{- end -}} + {{- else -}} + {{- if eq (lower .city) (lower $e.city) -}} {{- if and (ne .startdate $e.startdate) (ne ($.Scratch.Get "past-counter") 1 ) -}} Other {{ $e.city }} Events
{{- $.Scratch.Set "past-counter" 1 -}} {{- end -}} - {{- if eq (lower .city) (lower $e.city)}} {{- if ne .startdate $e.startdate -}} {{ dateFormat "2006" .startdate }}    {{- end -}}