From 547559d30d4083186b9907d2eaea5d84d9216af7 Mon Sep 17 00:00:00 2001 From: Vladimir Jimenez Date: Tue, 19 Nov 2024 08:09:55 +0000 Subject: [PATCH 1/2] feat: add Remix banner --- _config.yml | 6 ++++++ src/_includes/alert.html | 2 +- src/index.html | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index cc3bbd86..ca4e660e 100644 --- a/_config.yml +++ b/_config.yml @@ -6,6 +6,12 @@ collections: permalink: /:title description: >- A resource to help transit providers upgrade their fare collection systems to accept contactless payment methods like credit/debit cards and smartphones. +announcement: + enabled: true + text: | + Cal-ITP is offering smaller providers in California a limited number of free + licenses to Remix’s suite of scheduling products. Check your eligibility and + sign up using our [intake form](https://share.hsforms.com/13WkzY7taSoSdxBATWsNedQ3aanu){:target="_black"}. # Exclude from processing. # The following items will not be processed, by default. # Any item listed under the `exclude:` key here will be automatically added to diff --git a/src/_includes/alert.html b/src/_includes/alert.html index 187c896e..50647c99 100644 --- a/src/_includes/alert.html +++ b/src/_includes/alert.html @@ -1,5 +1,5 @@ diff --git a/src/index.html b/src/index.html index a6903c15..5d505fd7 100644 --- a/src/index.html +++ b/src/index.html @@ -9,7 +9,9 @@ newsletter_background: bg-white --- -{% include alert.html display="d-none" %} +{% if site.announcement.enabled %} + {% include alert.html text=site.announcement.text %} +{% endif %}
From a248d7bce41954dc0941914d6595e907edb10605 Mon Sep 17 00:00:00 2001 From: Vladimir Jimenez Date: Tue, 19 Nov 2024 08:30:05 +0000 Subject: [PATCH 2/2] fix: don't add extra

to annoucement --- src/_includes/alert.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_includes/alert.html b/src/_includes/alert.html index 50647c99..a8310a4e 100644 --- a/src/_includes/alert.html +++ b/src/_includes/alert.html @@ -1,5 +1,5 @@