Getting started
Getting started
Requirements
- Hugo extended (the version pinned in
.github/workflows/hugo.yaml) - Go — the theme is installed as a Hugo Module
Local development
hugo serverThe site is served at http://localhost:1313 and reloads on every save.
Building
hugo --gc --minifyOutput lands in public/, which is gitignored — GitHub Actions builds and
deploys it on every push.
The theme is pinned on purpose
go.mod pins Hextra to v0.9.4 — the last release that runs on Hugo 0.131,
which is what this machine and the CI workflow both use. Newer Hextra needs
Hugo 0.146+.
⚠️
Don’t run
hugo mod get -u. This site’s look depends on theme internals, so
an upgrade will break things silently — the build still succeeds, the page
just renders wrong.If you ever do bump it, re-check these, which are the parts that reach into the theme rather than configure it:
assets/css/custom.css— hides the navbar, sizes the sidebar to its content, and collapses subtrees. All of it keys on theme class names.layouts/—docs/index.html,blog/list.html,blog/single.htmlare copies of theme files with one line changed, so they won’t pick up theme fixes.type: docsincontent/_index.md— load-bearing: it puts both sections in the sidebar and routes the home page tolayouts/docs/index.html.