Websites

The www descriptor: static and content-driven website roots.

The www descriptor defines the repository area for static and content-driven website roots. Each child directory is one self-contained website — a Hugo-style site, a documentation site, a landing page — carrying its own content, layouts, assets, and site configuration.

When to introduce it

Add a www directory when a repository needs a website whose output is generated static content. A frontend application with application-style behaviour, client-side state, or deployment concerns beyond static publishing belongs in an app directory instead.

Rules

  • Keep site content, layouts, assets, and configuration inside the site root.
  • Treat generated output as disposable build output.
  • Factor shared layouts, themes, or assets into a common location only once more than one site needs them.

This site is itself an instance of the convention: its Hugo source lives in the site repository’s www/StarterSite.

Source: descriptors/www/README.md

Revised: December 2026.