Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Other events aren't always only past #570

Merged
merged 1 commit into from
Jun 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layouts/partials/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h1 class = "welcome-page">devopsdays {{$e.city}}</h1>
{{- if .startdate -}} <!-- for some reason, it bails on the city Chicago, and also Paris -->
{{- if eq (lower .city) (lower $e.city) -}}
{{- if and (ne .startdate $e.startdate) (ne ($.Scratch.Get "past-counter") 1 ) -}}
<i>Past {{ $e.city }} Events</i><br />
<i>Other {{ $e.city }} Events</i><br />
{{- $.Scratch.Set "past-counter" 1 -}}
{{- end -}}
{{- if eq (lower .city) (lower $e.city)}}
Expand Down