From 85afe5e081aa61ba069f17e668692aff357bccfd Mon Sep 17 00:00:00 2001 From: Andy Croll Date: Wed, 24 Jan 2024 17:13:14 +0000 Subject: [PATCH] Add /cfp/ for open and coming CFPs (#574) * Add /cfp/ for open and coming CFPs * Greater than or equal to for CFP dates --- _layouts/default.html | 1 + cfp/index.html | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 cfp/index.html diff --git a/_layouts/default.html b/_layouts/default.html index 1a7781ba..b73d6d2c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -22,6 +22,7 @@

Ruby Conferences diff --git a/cfp/index.html b/cfp/index.html new file mode 100644 index 00000000..660dabcf --- /dev/null +++ b/cfp/index.html @@ -0,0 +1,16 @@ +--- +layout: default +--- +
+
+ {% assign now = site.time | date: '%s' | plus: 0 %} + {% assign conferences = site.data.conferences | sort: 'start_date' %} + {% for event in conferences %} + {% assign start_date = event.start_date | date: '%s' | plus: 0 %} + {% assign cfp_date = event.cfp_date | date: '%s' | plus: 0 %} + {% if start_date >= now and cfp_date >= now %} + {% include event.html %} + {% endif %} + {% endfor %} +
+