THE PRACTICAL GUIDE TO CONTENT-ADDRESSED PUBLISHING12 topics · 10 field guides

IPFS Static Website / FILES, NOT A BACKEND

A complete site. A portable folder.

The strongest starting point is a static directory you can inspect. Give every route a real page and include every asset needed to read it.

Create real routes

Use a directory with its own index document for each clean page URL. This keeps navigation independent of custom rewrite rules or a development server. Test a deep page by opening it directly and reloading it. A homepage that works does not prove that every route has a real file behind it, particularly when a framework previously supplied a client-side fallback.

Make resource paths deliberate

A root-relative path points to the host root, which may not be the release root when served beneath a gateway prefix. Inspect navigation, images, stylesheets, background images, script imports, and generated links. Relative links can preserve a release under a path prefix, but they must be correct at every nesting depth. Test the actual delivery contexts you intend to support.

Compile before publishing

Deliver production CSS rather than a styling compiler that runs in the reader’s browser. Keep JavaScript small and limited to behavior the site actually needs. Include media files locally where practical, remove unused demo assets, and set image dimensions. Any remaining remote resource is a runtime dependency that should be intentional, not a surprise left by the template.

Keep metadata and navigation distinct

Canonical URLs describe the preferred public identity of a page, while browsing links determine where a visitor goes next. Keep canonical, social, sitemap, and feed URLs consistent with the branded domain. Make internal navigation portable without accidentally rewriting search metadata to a temporary test host. Check article dates and schema against the visible content rather than filling every field automatically.

Technical reference: IPFS multi-page website tutorial. Review the relevant configuration before applying it to a production environment.

COMMON QUESTIONS

IPFS Static Website: the details

Can a static site have a mobile menu?

Yes. Lightweight browser JavaScript can control a menu without a server application. The basic content and navigation should remain understandable without it.

Can IPFS process a contact form by itself?

Distributing static files does not provide server-side form processing. Use an honest email link or deliberately integrate a separate service when the requirements call for it.

FIELD GUIDES

Go deeper in the Website Lab

All field guides