Before you begin
Prerequisites for building an OINK site.
Oink is a Hugo theme whose complete browser runtime ships with the theme. A consumer site builds with Hugo Extended alone: no Node.js package installation, PostCSS step, CDN, or build-time remote asset download is part of the default path.
github.com/pgsty/oink in an existing
or new Hugo site. See the Oink quick start.pgsty/oink.pgsty.com repository
as a complete bilingual configuration and regression reference.Install Git, Go, and Hugo Extended 0.160.1 or newer. See
Before you begin for platform notes and verification commands.
From the site root:
Then import the theme in hugo.yaml:
Pin THEME_REF to a released tag or immutable commit and commit go.mod and
go.sum.
The same commands preview and build every supported module consumer:
page.md and page.zh.md.Prerequisites for building an OINK site.
Add the pinned Oink Hugo Module to a site.
Create a minimal bilingual OINK site without a frontend toolchain.
Configure the site, languages, navigation, and local features.
Use the independent Oink project site as a complete reference.
Build and preview an OINK site with a Hugo Extended container.
Use an OINK archive, Git checkout, or Hugo Module.
Diagnose Oink installation, build, language, and platform issues.