Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homepage announcements are now configured with _config.yml #594

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/alert.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="alert alert-light {{ include.display }}" role="alert">
<div class="container fs-7">
<!-- Alert text goes here -->
{{ include.text | markdownify | remove: '<p>' | remove: '</p>' }}
</div>
</div>
4 changes: 3 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

<div class="container">
<div class="imaged-section imaged-section--right">
Expand Down