Skip to content

Commit

Permalink
Add /cfp/ for open and coming CFPs (#574)
Browse files Browse the repository at this point in the history
* Add /cfp/ for open and coming CFPs

* Greater than or equal to for CFP dates
  • Loading branch information
andycroll authored Jan 24, 2024
1 parent 1d25502 commit 85afe5e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ <h1><a class="extruded" href="/"><span>Ruby&nbsp;</span><span>Conferences</span>
<ul>
<li class="{% if page.url == "/" %}active{% endif %}"><a href="/">Upcoming</a></li>
<li class="{% if page.url == "/past/" %}active{% endif %}"><a href="/past/">Past</a></li>
<li class="{% if page.url == "/cfp/" %}active{% endif %}"><a href="/cfp/">CFP</a></li>
</ul>
</nav>
</header>
Expand Down
16 changes: 16 additions & 0 deletions cfp/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: default
---
<article id="home">
<dl>
{% 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 %}
</dl>
</article>

0 comments on commit 85afe5e

Please sign in to comment.