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

Closed
opened 2026-10-05 05:11:38 +02:00 by adam · 4 comments
Owner

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

We need to confirm that the new blog XML will correctly bring material into this section at the bottom of ipfs.io: ![image](https://user-images.githubusercontent.com/1507828/113736299-34de4f00-96ba-11eb-9395-0df56c7e322e.png) Code for that on the ipfs.io side looks to be here: https://github.com/ipfs/website/blob/c941d25e2adfb15f77c8cd41163916ea2ed88f80/js/lib/blog-feed.js <!-- github-sync-id:851541936 -->
adam closed this issue 2026-10-05 05:11:38 +02:00
Author
Owner

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.

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](https://blog.ipfs.io/index.json). 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. <!-- github-comment-id:814269398 -->
Author
Owner

Ugh. Thank you 🙏

Ugh. Thank you 🙏 <!-- github-comment-id:814302294 -->
Author
Owner

@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.

@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. <!-- github-comment-id:815060149 -->
Author
Owner

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

FWIW, we can make this into whatever we want when we replatform the site - this is more of a band-aid fix. <!-- github-comment-id:815069735 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/ipfs-blog#51