Base the CFP text on a closing date instead of a

...boolean
This commit is contained in:
Oliver Davies 2024-12-07 17:51:00 +00:00
parent 243402e4db
commit efd52c4c30
2 changed files with 3 additions and 2 deletions

View file

@ -9,4 +9,4 @@ subtitle: A conference about the Sculpin static site generator.
# shortname:
cfp:
open: true
close_date: 2025-01-01

View file

@ -4,7 +4,8 @@ title: Welcome to SculpinCon!
<h1>{{ page.title }}</h1>
{% if site.cfp.open %}
{# Show the "submit to our CFP" text if the current date is before the closing date. #}
{% if 'today'|date('U') < site.cfp.close_date %}
<p>Please submit to our call for papers!</p>
{% else %}
<p>Our call for papers is now closed.</p>