swag-for-dev icon indicating copy to clipboard operation
swag-for-dev copied to clipboard

WIP: Release RSS, Atom and JSON feeds

Open aslafy-z opened this issue 7 years ago • 9 comments

  • [x] I've checked that this isn't a duplicate pull request.

I built a npm module to enable creation of these files from the gulp pipeline using https://github.com/jpmonette/feed library. See https://github.com/aslafy-z/gulp-feed.

Still need to set some values but I'd love to have your point on this.

You can preview the generated files in here:

  • rss: https://deploy-preview-160--peaceful-chandrasekhar-efde8e.netlify.com/feed/rss
  • atom: https://deploy-preview-160--peaceful-chandrasekhar-efde8e.netlify.com/feed/atom
  • json: https://deploy-preview-160--peaceful-chandrasekhar-efde8e.netlify.com/feed/json

Closes #142

TODO:

  • [ ] add tags
  • [ ] add difficulty
  • [ ] add image for Atom
  • [ ] add date
  • [ ] add author ?
  • [ ] add content
  • [ ] you tell me

aslafy-z avatar Nov 13 '18 17:11 aslafy-z

Could you link to the feeds? I can't find it 👀

vikaspotluri123 avatar Nov 13 '18 17:11 vikaspotluri123

Could you link to the feeds? I can't find it

Just updated OP with a link :wink:

aslafy-z avatar Nov 13 '18 17:11 aslafy-z

Just updated OP with a link 😉

Thanks 😄 are you currently working on integrating the feed into the site?

vikaspotluri123 avatar Nov 13 '18 17:11 vikaspotluri123

I'm not, feel free to take it up if you like to!

aslafy-z avatar Nov 13 '18 18:11 aslafy-z

I'm not, feel free to take it up if you like to!

I wish I had time 😔 my schedule is terrible until mid December!

Ghost (which I work with extensively) does a pretty good job generating SEO-related things, including RSS-type feeds.

Here's an example feed: https://blog.ghost.org/rss/

The tags are implemented using the dc:category node, and I think we should do the same. Additionally, do we need to add the pubDate node to all the items? I think it's needed for feed generators like IFTTT and Feedly to know how to order content, or what content is new 🤔

Also, I think we might want to use the image that's uploaded to netlify; if history is an issue, we can use the netlify commit preview url as the root

vikaspotluri123 avatar Nov 13 '18 18:11 vikaspotluri123

There is an open PR (https://github.com/jpmonette/feed/pull/64) about adding category field. We could use it once it has been merged (not sure it's still active, I'm gona take it up if they give no news).

I'm pretty we'll mess lot of feed readers if our dates are all the sames, we need to find out how to keep the date. I think adding a createdAt (or similar) can do the trick.

I'm gonna update to use the generated images instead but I wanted to gatter feedback before. How whould history be an issue? What do you mean?

aslafy-z avatar Nov 14 '18 10:11 aslafy-z

How whould history be an issue? What do you mean?

For example, Gatsby's image changed, so we had to hotfix a replacement from an older build. If, for example, you use IFTTT to generate an email when a new feed item appears, it will hotlink to whatever you tell it to, which could be deleted in the future.

We can just use the DEPLOY_URL env var

vikaspotluri123 avatar Nov 14 '18 14:11 vikaspotluri123

Needs rebase.

swapagarwal avatar Dec 05 '18 15:12 swapagarwal

The feed has items sorted alphabetically. Let's use dateAdded to sort?

swapagarwal avatar Dec 09 '18 01:12 swapagarwal