Inspect the bilingual project site
The independent
pgsty/oink.pgsty.com repository is
the complete bilingual example and regression site. It is intentionally more
comprehensive than a minimal consumer: use it as a reference, then keep only the
content and configuration your product needs.
Clone the project site
Clone the project site and build its pinned public Oink release directly:
git clone https://github.com/pgsty/oink.pgsty.com.git product-docs
cd product-docs
hugo --gc --minifyThe committed go.mod pins github.com/pgsty/oink. For local theme
development, clone the theme as a sibling and use the workspace commands
documented in the
Oink quick start.
Run the site checks
Building or previewing a site with Oink does not require Node.js or installing npm packages. Node.js and the development dependencies in this example repository are needed only when maintaining the project site and running its formatting, link, translation, and regression checks:
npm ci
npm testOpen the generated site and check both English and Chinese pages. Use the language switcher from a translated detail page, not only from the home page.
Replace the example identity
Edit hugo.yaml and the files under config/, then replace:
- site and per-language titles and descriptions;
baseURL;- repository and branch URLs;
- copyright holder and starting year;
- logo and brand assets;
- English and Chinese menu labels.
Do not create an oink.* parameter namespace. Use Hugo’s language, menu,
module, output, and markup settings plus the documented theme parameters.
Replace the example content
Keep each translation pair together:
content/docs/getting-started.md
content/docs/getting-started.zh.mdDelete historical and regression content that the product does not need. Remove an example asset only after no page references it.
For translated headings, use the English rendered ID explicitly:
## Configure search## 配置搜索 {#configure-search}Put the new site in version control
Change the module path, repository metadata, and remote before publishing a
derived site. Keep the Oink version pinned in go.mod. Do not commit generated
public/ output unless the hosting workflow explicitly requires it.
What’s next?
- Review basic configuration.
- Learn the content components.
- Configure deployment.
- Use the release checklist.