
See the demo
Long Section, live.
Repository
The code on GitHub, under the MIT license.
Deploy to Cloudflare
A copy of the repository on Cloudflare. Its first build fails until you add the build variables, as the README says.
Deploy with Vercel
A copy of the repository, built on Vercel.
What it shows
- The content model as code: people, categories, posts, projects and pages, in
nohead.schema.yaml. See Schema as code. - Content collections loaded from Nohead when the site builds, in
src/content.config.ts. See Astro adapter. - Images in every size from one upload, made by the image CDN through the adapter’s image service, set in
astro.config.mjs. See Images. - Search across the journal as you type, in
src/components/Search.astro. See Public search. - A rebuild when published content changes, from a webhook that calls the host’s deploy hook. See Webhooks.
Step by step
The repository’s history builds the site one commit at a time. It starts as a plain Astro site reading its content from files inseed/, and each commit after that moves one thing onto Nohead. Every step builds the same site, and its commits show what each one changes.
1
A portfolio reading seed files
The whole site, reading Markdown, YAML and images from
seed/ as content collections.2
The content model as code
nohead.schema.yaml describes the content, and the CLI pushes it to a project.3
A seed script for the demo content
pnpm seed uploads seed/ to the project through the TypeScript SDK.4
Nohead's Astro loader
The content collections load from Nohead instead of
seed/, and the pages stay as they were.5
Images from the image CDN
The adapter’s image service writes each size into the image’s URL, so the build downloads no image.
6
Search with public search
The search box sends each search straight to Nohead’s public search.
7
Deploying to Cloudflare or Vercel
A deploy button and settings for each host.
8
Rebuilding when content is published
A webhook calls the host’s deploy hook when published content changes, so drafts start no build.