HermanMartinus / bearblog

Free, no-nonsense, super fast blogging.
MIT License
2.7k stars 77 forks source link

RSS / Atom / JSON Feed support #2

Closed khm closed 4 years ago

khm commented 4 years ago

Hi,

I like your project, and I think it's great you're running a service like this. Please consider adding RSS, Atom, or JSON Feed support -- it makes it easier for people to follow blogs, and it can cut down on bandwidth since popular readers like Feedly can serve tons of subscribers on your behalf.

I think it should work fine to use your existing templating system, just creating a feed template and adding a link rel='alternate' would be enough to get you going.

What do you think?

HermanMartinus commented 4 years ago

Yeah, absolutely! I'm a big fan of RSS feeds. It's on my list.

I'm glad you're enjoying my weekend project :)

Herman

On Tue, 26 May 2020 at 19:46, khm notifications@github.com wrote:

Hi,

I like your project, and I think it's great you're running a service like this. Please consider adding RSS, Atom, or JSON Feed support -- it makes it easier for people to follow blogs, and it can cut down on bandwidth since popular readers like Feedly can serve tons of subscribers on your behalf.

I think it should work fine to use your existing templating system, just creating a feed template and adding a link rel='alternate' would be enough to get you going.

What do you think?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HermanMartinus/bearblog/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGI3J6LDT7MQPUM2OJJOLLTRTP57PANCNFSM4NKZIOSQ .

DivisionMax commented 4 years ago

@HermanMartinus https://docs.djangoproject.com/en/3.0/ref/contrib/syndication/

HermanMartinus commented 4 years ago

Feeds are now available at /feed eg: https://herman.bearblog.dev/feed or https://wordbutter.online/feed

Let me know if you find any issues. It's my first time setting up an atom feed.

khm commented 4 years ago

Looks good! I'd consider making it configurable for the person to put a contact address where it's currently hardcoded to 'hidden', but that's your call and otherwise this is great!

manton commented 4 years ago

I added issue #35 about a few things to fix in the feed. Also, JSON Feed support would be great! Since you have /feed, you might consider /feed/json, since both would be consistent with WordPress for example.