jekyll-feed icon indicating copy to clipboard operation
jekyll-feed copied to clipboard

Create JSON feed

Open hugmanrique opened this issue 8 years ago • 3 comments

The original spec for JSON Feeds has been published this morning (Spec), and as my first Ruby exercise, I tried to create JSON feeds for Jekyll.

By default, the JSON feed will be written to feed.json, but a config option is also available. The JSON code should be valid, and I perform sanitization of strings by using the json Liquid operator.

Please note that this is the first time I've modified some Ruby code, and some things could be totally wrong (I'm not too sure about this return)

hugmanrique avatar May 17 '17 22:05 hugmanrique

@hugmanrique This is awesome! Great work here.

Per the discussion in #172, I’m not sure that we are ready to support JSON Feed just yet. That said, I wonder if it would be worthwhile for us to have a branch that supports JSON. Kind of a just in case operation. This way, anybody who wanted to work with JSON Feed and Jekyll could have a common place to do so.

@benbalter Thoughts?

pathawks avatar May 18 '17 01:05 pathawks

Huge 👍 on this.

parkr avatar May 18 '17 21:05 parkr

This is a cool proof of concept but honestly, if we were to produce a JSON feed, I think doing it in pure Ruby would be a better approach then using Liquid templates.

pathawks avatar Jun 17 '17 18:06 pathawks