rescript-association / reasonml.org

Deprecated in favor of rescript-lang.org
MIT License
125 stars 34 forks source link

RSS feed for blog #174

Closed wezm closed 4 years ago

wezm commented 4 years ago

It would be great to have an RSS feed for the blog so folks (like me) can discover new posts automatically and read in the comfort of their feed reader if they desire.

ryyppy commented 4 years ago

That's a good idea and luckily this is not hard to implement.

Just in case someone else want to tackle this before I'd do it:

For the maximum size of the feed, I'd suggest the last 10 blog posts (ordered by ascending date), like it is done in the pages/blog.re file.

ryyppy commented 4 years ago

@wezm just added RSS support. Could you test it with your preferred RSS feed reader and give feedback?

URL: https://reasonml.org/blog/feed.xml

wezm commented 4 years ago

Excellent, thank you. I was able to subscribe in Reeder and it worked although there is no article body present.

image

ryyppy commented 4 years ago

the article body is the description meta field within our blog system... articles ported from the different Reason projects don't have that set, unless the editor did some extra writing ... that said, some articles should have a description set.

If you could give me an example of a good looking RSS preview from another RSS feed, I could try to extract some content text from the blog content body if there is no description available!

wezm commented 4 years ago

If you could give me an example of a good looking RSS preview from another RSS feed, I could try to extract some content text from the blog content body if there is no description available!

The best feeds include the whole body of the post in the feed so it's possible to read in the comfort of the feed reader. Failing that some feeds just take an excerpt from the content and you have to visit the page to read the whole post.

On Read Rust, where I share posts related to the Rust programming language I just include an except, since I don't want to copy the original article's content:

image

John Gruber's Daring Fireball is an example that include the entire post on the feed:

image

The feed reader pictured is the web version of Feedbin.

wezm commented 4 years ago

Closing as this is now working for me.