Upgrade the Oink Hugo Module
Upgrade a site that imports Oink as a pinned Hugo Module.
Pin a version
Production sites should import a release tag or immutable commit, never an unversioned branch. From the site root, update Oink to a specific ref:
hugo mod get github.com/pgsty/oink@THEME_REF
hugo mod tidyReplace THEME_REF with the published root tag or commit named by the release.
Test a local checkout
To test the current OINK checkout without changing the committed module path, use an ignored Go workspace with the local theme checkout:
go work init .
go work edit -replace=github.com/pgsty/oink=/absolute/path/to/oink
export HUGO_MODULE_WORKSPACE=go.work
hugo --gc --minifyKeep go.work out of version control rather than committing a
developer-specific absolute path.
Verify the resolved module
Inspect Hugo’s dependency graph:
hugo mod graphConfirm that the theme resolves to the intended tag, commit, or local
replacement. No hugo mod npm pack or npm install step is required for OINK:
browser dependencies already ship with the theme.
Continue with Review theme overrides.