ipfs/ipfs-blog

Make sure "latest posts" will appear correctly on ipfs.io

jessicaschilling opened this issue · 4 comments

We need to confirm that the new blog XML will correctly bring material into this section at the bottom of ipfs.io:
image

Code for that on the ipfs.io side looks to be here:
https://github.com/ipfs/website/blob/c941d25e2adfb15f77c8cd41163916ea2ed88f80/js/lib/blog-feed.js

It's not going to work out of the box because ipfs.io is expecting a index.json file to be available from blog.ipfs.io/index.json which contains the 4 latest posts formatted in a specific way. See here: https://github.com/ipfs/website/blob/master/README.md#latest-blog-posts

I think we should generate the json file on build, but let me look a little bit more into this and get back with the best solution for this.

Ugh. Thank you 🙏

@cwaring would a post build script that simply generates this json file be an ok solution? We only need this for production so I don't see why we would need to chain it to the webpack dev server as well.

FWIW, we can make this into whatever we want when we replatform the site - this is more of a band-aid fix.