The initial index uses the IPFS Cluster API while browse uses the IPFS API. These return different but mostly similar data. If we massage the data ipfs-cluster returns (after detecting data type) to be the format returned by vanilla IPFS, partials can be used to eliminate some duplicate html.
Setup a layout to eliminate duplication of the header and footer.
Look at the routes to remove duplicate code such as sorting (after massaging data).