2 Take over the site
The agent’s session ends; the site should not end with it. Before you ask for more, make sure you can run the site without the agent, know where each kind of change lives, and have checked the result yourself. That takes about twenty minutes and turns a generated site into one you own.
Run it yourself
Start the preview from the site’s directory and open the address Hugo prints:
The first start takes longer while Hugo downloads the pinned OINK release into
its module cache. Then change one sentence on the home page, in
data/home/en.yaml or whichever language file the agent wrote, and save. The
browser reloads by itself. When your own edit shows up, you no longer depend on
the agent for small changes.
Know the five places
An OINK site is an ordinary Hugo repository. Almost every change you will make lands in one of five places:
An OINK site, by where changes go
- hugo.yamlsite-wide: title, baseURL, languages, menus, params.ui
- go.modthe OINK release the site is pinned to
content/every page; the path is the URL, *.zh.md is the Chinese peer
- docs/
- blog/
data/the home page sections, download records, footer links
- home/
- assets/logo, images to process, css/project.css
- static/files served exactly as they are
- layouts/template overrides; ideally empty
- .github/workflows/the deployment pipeline
content/ and data/ change every week, hugo.yaml changes the whole site at
once, and go.mod changes only when you upgrade OINK. layouts/ deserves a
look on day one: a file there replaces a theme template and stops receiving the
theme’s fixes, so every override should exist for a reason you can name.
From scratch explains what each file in a
minimal OINK site does.
Review what you got
The agent checked its work, but you are the reader the site is for. Go through these with the preview open:
| Check | How | What it catches |
|---|---|---|
| Every language | Switch languages from the navbar on three different pages | Pages the agent translated in one language only |
| Every look | Press T to cycle presets and Y to cycle light and dark | Custom colors that are unreadable in one mode |
| A phone | Narrow the window to about 390 pixels | Wide tables, hero images and long code lines |
| Search | Press / and search for a word from your own pages | A missing or stale search index |
| The Markdown copy | Append index.md to a page address |
Components that read badly as plain text for AI readers |
| Overrides | List the files under layouts/ and assets/css/ |
Templates copied from the theme without a reason |
| Placeholders | Search the repository for <, TODO and example.com |
Facts the agent could not know and left for you |
| The production build | Run the command below and read every warning | Settings OINK ignored and replaced with a safe default |
The production build is the one your host will run:
It ends with a Total in … line. Read the warnings above it: OINK reports a
mistyped key or an incomplete integration as a warning and keeps building, so a
warning usually means a feature you expect is switched off rather than a broken
site.
Improve it with follow-up prompts
Ask for one change per prompt, and say how the agent should check it. A small change comes back as a small diff that you can read in a minute; “make the site better” comes back as forty files you cannot review.
Edit the files yourself when that is quicker than describing the change: a sentence, a menu label, a date. Ask the agent for changes that touch many files at once, such as a translation pass or a restructure, and for settings you have not learned yet. Part II teaches those settings, so that over time you can tell the agent exactly which key to change, or change it yourself.
Save a baseline
Commit the site as it is now, so every later session shows up as a diff against a version you reviewed:
The Starter’s .gitignore already keeps public/, resources/ and Hugo’s
caches out of Git. Note the Hugo version (hugo version) and the OINK release
in go.mod beside the commit; when something changes later, those three facts
tell you whether the content, the theme or the toolchain moved.
Where Part II goes
Part II rebuilds the same kinds of features by hand, on one sample project: the documentation site of Acme DB, an open-source time-series database, started from the OINK Starter. Each chapter adds one layer, shows the source beside its result on this page, and ends with a prompt for doing the same on your own site. Chapter 3 starts with a single page.