apostrophecms-legacy / apostrophe-blog

Blogging for the Apostrophe 2 content management system for Node.
22 stars 13 forks source link

Add RSS as core feature of the blog module #19

Open abea opened 7 years ago

abea commented 7 years ago

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.

bobclewell commented 7 years ago

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

petershaw commented 6 years ago

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

boutell commented 6 years ago

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

boutell commented 6 years ago

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.

abea commented 6 years ago

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.

boutell commented 6 years ago

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 notifications@github.com 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

petershaw commented 6 years ago

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

boutell commented 6 years ago

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

On Thu, Feb 15, 2018 at 1:51 PM, Peter Shaw notifications@github.com 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