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

Add an RSS feed for blog posts #546

Merged
merged 6 commits into from
Sep 20, 2024
Merged

Add an RSS feed for blog posts #546

merged 6 commits into from
Sep 20, 2024

Conversation

cosenal
Copy link
Contributor

@cosenal cosenal commented Sep 16, 2024

At UnitaryCON, @1ucian0 reminded me of my past as a developer of an open-source rss reader, so I felt a moral obligation to add an RSS feed to the Unitary Fund blog.

Partially solves #49. Inspired by this one, we can create an easy follow-up PRs for other pages (e.g. grants.)

Implemented following https://docs.astro.build/en/guides/rss/

Tested with NetNewsWire:

  • run the app with pnpm dev
  • add localhost:3000 as a «New Feed» on NetNewsWire
Screenshot 2024-09-16 at 09 50 46

Partially solves #49 for blog posts
Copy link

vercel bot commented Sep 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unitary-fund ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 3:15pm
unitary-fund-prel ✅ Ready (Inspect) Visit Preview Sep 17, 2024 3:15pm

@nathanshammah
Copy link
Member

@cosenal thanks for adding this. I wonder if we can address it also for grants (see #49), in the future. That said, how do you subscribe / find out if you are a visitor? There is an RSS icon showing in the browser? I cannot inspect the page, as tests, are failing, not sure why, see #547.

@cosenal
Copy link
Contributor Author

cosenal commented Sep 16, 2024

I wonder if we can address it also for grants (see #49), in the future.

I mention that in the PR description :)

how do you subscribe / find out if you are a visitor? There is an RSS icon showing in the browser?

This feature has mostly been removed from modern browsers. Unfortunately RSS/atom feeds are not as fashionable as they used to be 10 years ago. In modern browsers, you can still check if a page has an RSS feed manually or by using some browser extensions (I use RSSPreview). The case of this PR is that if an user assumes our blog has a feed and tries to link it to their reader, it will work and they will not be disappointed. An alternative would be an explicit «Subscribe» button that leads to the RSS feed, but that is something out of fashion these days.

Copy link
Member

@nathanshammah nathanshammah left a comment

Choose a reason for hiding this comment

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

Thanks @cosenal! I missed the comment on the grant feed, +1 from me to open a new PR for that too.

Regarding including the link: if we don't, I feel it would be very hidden. Not sure how RSS is used these days, but what about having a simple link under a text, in the main file, https://github.com/unitaryfund/unitary.fund/blob/blog-rss/src/pages/blog.mdx,
of the kind of:
"Stay up to date with new blog posts by joining the [UF Discord server], subscribing to our quarterly [newsletter] or subscribing to the [RSS feed]". In any case feel free to merge.

@cosenal cosenal merged commit ecaee2d into main Sep 20, 2024
3 checks passed
@cosenal cosenal deleted the blog-rss branch September 20, 2024 14:51
@cosenal
Copy link
Contributor Author

cosenal commented Sep 20, 2024

@nathanshammah Thanks for the review! I merged it so we can also test it on the live website. I will create a followup PR with the text you suggested and an alternate feed for grants.

Comment on lines -4 to +5
day: 9
month: 16
day: 16
month: 9
Copy link
Member

Choose a reason for hiding this comment

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

Ha! good eye

@1ucian0
Copy link
Contributor

1ucian0 commented Oct 1, 2024

It looks beautiful in Feeder. Thanks.

@cosenal
Copy link
Contributor Author

cosenal commented Oct 1, 2024

Nice, @1ucian0!
RSS is not dead!

@amirebrahimi
Copy link
Contributor

Certainly not! I still use: https://ifttt.com/feed

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.

6 participants