diff --git a/data/events/2016-ohio.yml b/data/events/2016-ohio.yml index 30d0d2841b6..c8c653a3b95 100644 --- a/data/events/2016-ohio.yml +++ b/data/events/2016-ohio.yml @@ -1,5 +1,5 @@ name: "2016-ohio" # The name of the event. Four digit year with the city name in lower-case, with no spaces. -year: "2016" # The year of the event. Make sure it is in quotes. +year: 2016 # The year of the event. Make sure it is in quotes. city: "Ohio" # The city name of the event. Capitalize it. friendly: "2016-ohio" # Four digit year and the city name in lower-case. Don't forget the dash! status: "current" # Options are "past" or "current". @@ -34,5 +34,3 @@ sponsor_levels: # In this section, list the level of sponsorships and the label label: Bronze - id: media label: Media - - diff --git a/themes/devopsdays-legacy/layouts/partials/future.html b/themes/devopsdays-legacy/layouts/partials/future.html index 0275d4822a5..4b4fe5aa611 100644 --- a/themes/devopsdays-legacy/layouts/partials/future.html +++ b/themes/devopsdays-legacy/layouts/partials/future.html @@ -6,21 +6,10 @@ This code creates 2-3 lists: One of current years and a list of current events for each year (namespaced with "future" to prevent collisions). Later we loop through these lists to generate our event info. + +^^^ This isn't how this works right now - this is a sloppy implementation which hard-codes it to the year 2016, but it works for now -@mattstratton --> -{{ range seq .Now.Year (add .Now.Year 1) }} - {{ $future_year := (chomp .) }} - {{ range $.Site.Data.events }} - {{ if and (eq .year $future_year) (eq .status "current") }} - {{ $.Scratch.SetInMap "future_years" $future_year $future_year }} - {{ if .startdate }} - {{ $.Scratch.SetInMap (print "future" $future_year) .startdate .friendly }} - {{ else }} - {{ $.Scratch.SetInMap (print "future" $future_year) "TBD" .friendly }} - {{ end }} - {{ end }} - {{ end }} -{{ end }}