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

fix: august event placeholder visible event in upcoming events page #81

Conversation

FaberVitale
Copy link
Collaborator

@FaberVitale FaberVitale commented Aug 25, 2024

Description

Adds an env var, PUBLIC_MONTHS_WITHOUT_GENERATED_UPCOMING_EVENTS, that allows to not render specific placeholder months.

Why?

This logic has been added in order to not render an August placeholder.

Current config

https://github.com/Roma-JS/roma-js-on-astro/pull/81/files#diff-e9cbb0224c4a3d23a6019ba557e0cd568c1ad5e1582ff1e335fb7d99b7a1055dR25

How to use PUBLIC_MONTHS_WITHOUT_GENERATED_UPCOMING_EVENTS

# Leading and trailing commas are optional
PUBLIC_MONTHS_WITHOUT_GENERATED_UPCOMING_EVENTS="1,10," # Filter out January and October
PUBLIC_MONTHS_WITHOUT_GENERATED_UPCOMING_EVENTS="8" # Hide August
PUBLIC_MONTHS_WITHOUT_GENERATED_UPCOMING_EVENTS='' # Do not filter placeholders

Issues

Closes #80

Copy link

netlify bot commented Aug 25, 2024

Deploy Preview for romajs ready!

Name Link
🔨 Latest commit 3c3f336
🔍 Latest deploy log https://app.netlify.com/sites/romajs/deploys/66cb368e8c5d0400085ecc7d
😎 Deploy Preview https://deploy-preview-81--romajs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@FaberVitale FaberVitale changed the title fix: August visible event in upcoming events page #$79 fix: august event placeholder visible event in upcoming events page Aug 25, 2024
Copy link
Contributor

@gdorsi gdorsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful job

@FaberVitale FaberVitale merged commit 5d52561 into Roma-JS:main Aug 26, 2024
5 checks passed
@FaberVitale FaberVitale mentioned this pull request Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a way to filter out months in the upcoming events page
2 participants