LadybirdBrowser / ladybird.org

https://ladybird.org/
36 stars 26 forks source link

Feature: RSS Feed #50

Open ADKaster opened 2 months ago

ADKaster commented 2 months ago

Several people have reached out asking if we could create an RSS feed for posts and newsletters.

ADKaster commented 2 months ago

56 adds a posts.xml generated from post contents.

However, it's served as application/xml instead of application/rss+xml, so the astro files probably need an update to serve it with the proper type.

simonkrauter commented 2 months ago

For me the web feed works! (I use FreshRSS.) Screenshot_2024-07-24_13-58-11

Just the entry "Thank you for supporting Ladybird!" I would not expect here.

samfry13 commented 2 months ago

@ADKaster I'm not sure we can get the RSS Feed to be application/rss+xml. After some experimentation, it looks like if we are doing a static build generation, Astro always exports a normal .xml file. Which is fine, but the issue is there's no way to specify the MIME type when serving static files, at least from what I can find on GH Pages [1].

Kingproone commented 2 months ago

Can there be an rss button added to the buttons at the bottom of the page pointing to https://ladybird.org/posts.xml? (bad mockup, ordering is up to debate) Screenshot_20240728_180516

bbb651 commented 1 month ago

@ADKaster I'm not sure we can get the RSS Feed to be application/rss+xml. After some experimentation, it looks like if we are doing a static build generation, Astro always exports a normal .xml file. Which is fine, but the issue is there's no way to specify the MIME type when serving static files, at least from what I can find on GH Pages [1].

The link was really helpful! Turns out it is supported, we just have to name the file with a .rss extension.