Publishing
Organizing a static website
Plan pages, assets and publishing without a database.
On this page
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