ruby-conferences / ruby-conferences.github.io

A simple list of Ruby conferences and meetups.
https://rubyconferences.org
Other
175 stars 202 forks source link

meetup page showing old listings #740

Closed adriangohjw closed 1 month ago

adriangohjw commented 1 month ago

havne't dug very deep but currently the website shows past meetups however when i git clone it, it doesn't show up on my local environment  

Screenshot 2024-08-31 at 3 11 24 AM
marcoroth commented 1 month ago

Hey @adriangohjw, thanks for reporting!

I'm not quite sure why that's the case. I think it has to do with the fact that it's a static website. So, if it doesn't get redeployed everyday it can't "remove" the past events automatically. I feel like it didn't happen in the past, but maybe we just deployed enough so it wasn't really noticeable.

I guess there would be two solutions to this problem:

adriangohjw commented 1 month ago

took a closer look, and you were correct—site.data.meetups is loaded at build time rather than on page load.

Since this site is hosted on GitHub Pages, I’ll create a quick PR to implement a daily cron job for redeployment. This will ensure that all parts of the platform using site.data... maintain a single source of truth across different pages.