From efd52c4c30667915ad5374b7f8652416a838e1b9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 7 Dec 2024 17:51:00 +0000 Subject: [PATCH] Base the CFP text on a closing date instead of a ...boolean --- app/config/sculpin_site.yml | 2 +- source/index.html.twig | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index da2dc52..d5e0f44 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -9,4 +9,4 @@ subtitle: A conference about the Sculpin static site generator. # shortname: cfp: - open: true + close_date: 2025-01-01 diff --git a/source/index.html.twig b/source/index.html.twig index 146a628..63f44b9 100644 --- a/source/index.html.twig +++ b/source/index.html.twig @@ -4,7 +4,8 @@ title: Welcome to SculpinCon!

{{ page.title }}

-{% 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 %}

Please submit to our call for papers!

{% else %}

Our call for papers is now closed.