srijan-paul / bark

A static site generator that powers my blog
https://injuly.in
MIT License
13 stars 1 forks source link

feature request: rss feed #4

Open sls opened 1 month ago

sls commented 1 month ago

I don't use bark, but I'd like to be able to follow https://injuly.in/blog/ in a feed reader. While an audience of one presumably doesn't warrant the expenditure of any effort, I hope that I am simply the most vocal of those who have sought such a feed to date.

I'm not much of a Haskell-er, but rss is a pretty straightforward format to generate in its minimal form. If you're willing to add a dependency, there seems to be an actively maintained rss library on Hackage: https://hackage.haskell.org/package/rss as well.

srijan-paul commented 1 month ago

Hi, @sls!

Thanks for reaching out. Quite a few people have asked for an RSS feed via email.

I haven't gotten around to it yet, but I guess I can add it as a plugin over this weekend :)

sls commented 1 month ago

I'm happy to sacrifice any notion of priority :) and appreciate your willingness to entertain adding this feature in any convenient timeframe. Best wishes

srijan-paul commented 1 month ago

Hi!

I figured that an RSS generator would be better off as a custom plugin, rather than a builtin feature. So I added it to the source for my site (here).

The RSS feed is now live at: https://injuly.in/rss.xml

Would you mind taking a look and letting me know if it is to your satisfaction?

metiulekm commented 1 month ago

You have https// instead of https:// in the generated file :)

It seems that the uriScheme field should include the colon: https://hackage.haskell.org/package/network-uri-2.6.4.2/docs/Network-URI.html#t:URI

srijan-paul commented 2 weeks ago

You have https// instead of https:// in the generated file :)

@metiulkm thanks for pointing it out! Fixed it just now.