Getting Hugo and Neocities to play nice with IPFS

Neocities 1 supports IPFS 2 archiving by default. Versions of the entire site are stored by hash. Hash values are available at URLs of the form:<site>/archives. Under a default Hugo 3 configuration, a DNS-based base URL will be set in the Hugo configuration (typically baseURL in config.toml). This will cause Hugo to generate all links and URLs in the site as absolute URLs incorporating the full DNS path. This, unfortunately, makes the site IPFS-unfriendly, as every link will take the user off of their IPFS node.
Read more