Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion clients/cafe-nenai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,34 @@ build.mjs generator β€” writes all 56 pages

## Build

Two targets from one source.

**The real site** β€” root-relative, for cafenenai.com when the domain moves:

```bash
node build.mjs # regenerates every page + sitemap.xml + robots.txt
node build.mjs # regenerates every page + sitemap.xml + robots.txt, in place
```

**The preview** β€” same site rooted at a subpath of handprotocol.org, so the
owner can review it before any DNS changes:

```bash
BASE=/cafenenai OUT=../../web/cafenenai \
SITE_URL=https://handprotocol.org/cafenenai NOINDEX=1 node build.mjs
```

Live at <https://handprotocol.org/cafenenai/>. Every internal URL is absolute,
so the subpath build just rewrites the leading slash at write time β€” no prefix
threading through the templates.

The preview is `noindex, nofollow` and `/cafenenai/` is disallowed in
`web/robots.txt` (a robots.txt *inside* the subdirectory would do nothing β€”
only the root one is honoured). That matters because the same content will
later live on cafenenai.com and must not compete with itself in search.

Rerun the preview build after any content change, or handprotocol.org will
drift from `clients/cafe-nenai/`.

56 pages: home, full menu, 4 category pages, **41 individual item pages**,
about, contact, news index, 5 press pages, 404.

Expand Down