apostrophe-blog icon indicating copy to clipboard operation
apostrophe-blog copied to clipboard

Add RSS as core feature of the blog module

Open abea opened this issue 7 years ago • 8 comments

I'm not sure there's a reason not to include RSS as a core feature of the blog module and it seems like a fairly standard feature of blogs and similar chronological content production (e.g., news sites, podcasts, etc). An alternative might be to do it as a separate module, but it seems a valuable feature to include.

abea avatar Oct 04 '17 14:10 abea

This is a good idea. See also the JSON feed.

Some points of reference: https://jsonfeed.org/ https://github.com/brentsimmons/JSONFeed https://daringfireball.net/linked/2017/05/17/json-feed

bobclewell avatar Oct 05 '17 06:10 bobclewell

+1 indeed. A blog without a feed is just a website, not a blog. Someone an idea how to do this?

petershaw avatar Feb 12 '18 17:02 petershaw

Pretty sure it's in there and just under documented. Look at the pieces pages module.

boutell avatar Feb 13 '18 13:02 boutell

Ha! Never mind, not enough sleep. I made that up (it was in 0.5).

The logical way to do this is to build an RSS feed capability into apostrophe-pieces-pages, reusing the functionality that is already there for everything except rendering, and extending it to list the publication time properly in apostrophe-blog-pages. The 0.5 code for this in apostrophe-snippets isn't bad as a starting point.

boutell avatar Feb 13 '18 13:02 boutell

We used the rss on another project within a module extending apostrophe-pieces. Kicking off the pieces-pages module definitely does sound the way to go.

abea avatar Feb 13 '18 14:02 abea

Yes, then you can offer an RSS feed icon that is filtered the same as the index page you're looking at (and perhaps also one that is not filtered, except for the tags the page is locked down to via page settings, without which it would seem just wrong - "what are these other blogs doing in your feed"). This is how we did it in 0.5 and it felt intuitive.

On Tue, Feb 13, 2018 at 9:07 AM, Alex Bea [email protected] wrote:

We used the rss https://www.npmjs.com/package/rss on another project within a module extending apostrophe-pieces. Kicking off the pieces-pages module definitely does sound the way to go.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/apostrophecms/apostrophe-blog/issues/19#issuecomment-365276465, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB9fX91V_d__2Voyz6-PGZixdONdKi-ks5tUZcfgaJpZM4PtrXf .

--

THOMAS BOUTELL, CHIEF SOFTWARE ARCHITECT P'UNK AVENUE | (215) 755-1330 | punkave.com

boutell avatar Feb 13 '18 16:02 boutell

Sounds good. May I friendly ask for an example? ;)

petershaw avatar Feb 15 '18 18:02 petershaw

The 0.5 source code includes a complete example including frontend templates.

On Thu, Feb 15, 2018 at 1:51 PM, Peter Shaw [email protected] wrote:

Sounds good. May I friendly ask for an example? ;)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/apostrophecms/apostrophe-blog/issues/19#issuecomment-366024741, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB9fXVUd3EKhoL331S6Lm5gYhEkZeFUks5tVHyTgaJpZM4PtrXf .

--

THOMAS BOUTELL, CHIEF SOFTWARE ARCHITECT P'UNK AVENUE | (215) 755-1330 | punkave.com

boutell avatar Feb 15 '18 18:02 boutell