Base the CFP text on a closing date instead of a
...boolean
This commit is contained in:
parent
243402e4db
commit
efd52c4c30
|
@ -9,4 +9,4 @@ subtitle: A conference about the Sculpin static site generator.
|
||||||
# shortname:
|
# shortname:
|
||||||
|
|
||||||
cfp:
|
cfp:
|
||||||
open: true
|
close_date: 2025-01-01
|
||||||
|
|
|
@ -4,7 +4,8 @@ title: Welcome to SculpinCon!
|
||||||
|
|
||||||
<h1>{{ page.title }}</h1>
|
<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>
|
<p>Please submit to our call for papers!</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>Our call for papers is now closed.</p>
|
<p>Our call for papers is now closed.</p>
|
||||||
|
|
Loading…
Reference in a new issue