This repository was archived by the owner on Jul 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151 <!-- propose button -->
5252 {{- if $e.startdate -}}
5353 {{- if $e.cfp_date_start -}}
54- {{- if and (ge (dateFormat "2006-01-02" (dateFormat "2006-01-02" now)) (dateFormat "2006-01-02" $e.cfp_date_start)) (le (dateFormat "2006-01-02" (dateFormat "2006-01-02" now)) (dateFormat "2006-01-02" $e.cfp_date_end)) -}}
54+ {{- if and (ge now (time $e.cfp_date_start)) (le now (time $e.cfp_date_end)) -}}
5555 {{- if $e.cfp_link -}}
5656 {{- if eq $e.cfp_link "" -}}
5757 {{- $.Scratch.Set "cfp_link" ((printf "/events/%s/propose" $e.name) | absURL ) -}}
Original file line number Diff line number Diff line change 11{{- $.Scratch.Add "events" "< table class = 'table sortable table-condensed '> < thead > < tr > < th > City</ th > < th > CFP Closes</ th > < th > Event Starts</ th > </ tr > </ thead > < tbody > " -}}
22{{- range sort $.Site.Data.events "startdate" -}}
33 {{- if .cfp_date_end -}}
4- {{- if and (ge (dateFormat "2006-01-02" (dateFormat "2006-01-02" now)) (dateFormat "2006-01-02" .cfp_date_start)) (ge (dateFormat "2006-01-02" .cfp_date_end) (dateFormat "2006-01-02" (dateFormat "2006-01-02" now)) ) -}}
4+ {{- if and (ge now (time .cfp_date_start)) (ge (time .cfp_date_end) now) -}}
55 {{- $.Scratch.Add "events" "< tr > < td > < a href = '/events/" -}}
66 {{- $.Scratch.Add "events" .name -}}
77 {{- $.Scratch.Add "events" "/ ' class = 'speaking '> " -}}
88 {{- $.Scratch.Add "events" .city -}}
99 {{- $.Scratch.Add "events" "</ a > </ td > < td data-dateformat ='YYYY-MM-DD '> " -}}
10- {{- $.Scratch.Add "events" .cfp_date_end -}}
10+ {{- $.Scratch.Add "events" (dateFormat "2006-01-02" .cfp_date_end) -}}
1111 {{- $.Scratch.Add "events" "</ td > < td data-dateformat ='YYYY-MM-DD '> " -}}
12- {{- $.Scratch.Add "events" .startdate -}}
12+ {{- $.Scratch.Add "events" (dateFormat "2006-01-02" .startdate) -}}
1313 {{- $.Scratch.Add "events" "</ td > </ tr > " -}}
1414 {{- end }} {{/* end: date is now or afterwards */}}
1515 {{- end }} {{/* end: if .cfp_date_end */}}
You can’t perform that action at this time.
0 commit comments