← All articles

Publishing

Organizing a static website

Plan pages, assets and publishing without a database.

On this page

  1. Use predictable paths
  2. Keep navigation consistent
  3. Deploy safely

Use predictable paths

Keep shared styles and scripts in an assets directory. Choose descriptive article paths and maintain redirects if URLs change.

Keep navigation consistent

Every page should provide a way to return to the homepage and discover related material. Check internal links after moving files.

Deploy safely

Back up current files, validate a new build, and publish it only after checking links and content. Keep a rollback copy outside the public directory.

Example

site/
  index.html
  articles/
  assets/
  robots.txt
  sitemap.xml

Related reading