HugoBlox Kit setup

This page distinguishes the inspected upstream recipe, local integration repairs and observed SiteKits acceptance. The adapted starter has passed production generation, indexing, bounded browser checks and anonymous asset-gate checks. Shared chat’s implemented source and separate runtime acceptance are tracked in shared-chat. Return to index or read comparison.

Source pins and prerequisites

InputSelection
StarterHugoBlox/hugo-starter, commit 66efb1916bd62287ea2fef3caacb1245b2f34da2
HugoBlox modulegithub.com/HugoBlox/kit/modules/blox v0.12.0, commit bf6e0287286303dfaf83e60a64930136b3eba6a6
Starter Hugo pinExtended 0.162.0, recorded in upstream hugoblox.yaml
SiteKits current-stable attemptExtended 0.166.0, executable tools/hugo-0.166.0/hugo
Package managerpnpm@10.14.0, from upstream package.json
Other build toolsNode.js and Go for the JavaScript toolchain and Hugo modules; the upstream workflow chooses Node 22

These are separate version namespaces. In particular, npm CLI hugoblox is not the Go module and is not necessary to recreate an already pinned starter. Repository versions.json records the source lookups.

The prepared apps/hkit/package.json pins the existing lockfile resolutions exactly: Tailwind CSS and its CLI 4.2.4, typography 0.5.19, Pagefind 1.5.2, and Preact 10.29.1. The starter’s pagefind: ^1.4.0 range is not the resolved version. These source pins are not an installation receipt.

Source references: go.mod, hugoblox.yaml, package.json, build workflow.

Hugo artifact verification

The Linux x64 Extended archive is hugo_extended_0.166.0_Linux-64bit.tar.gz. Its selected SHA-256 is:

0e39b901e3f919f1daae05c8ff64f0c14c8a348ef46886d63f8e6d1bb2653885

Verify the downloaded archive before extraction into the project-local tool directory. A verified binary is not proof that this module renders correctly on it. The starter’s 0.162.0 pin and the SiteKits 0.166.0 attempt remain explicit; record a compatibility failure rather than silently changing versions.

Static build procedure

Start from the pinned source in apps/hkit, not an unpinned CLI scaffold. The local application uses the compact site title HugoBlox Kit, selects https://hkit.loca.zone/, records Hugo 0.166.0 in hugoblox.yaml, and sets deploy.host: none instead of GitHub Pages. Preserve the official starter’s homepage, author data and module layouts; local configuration is an adaptation, not a new theme. Do not run another clone over the prepared application directory.

The equivalent production pipeline, run from apps/hkit after the project-local Hugo binary is available, is:

nice -n 10 env npm_config_cache="$PWD/.cache/npm" \
  npx --yes pnpm@10.14.0 install --frozen-lockfile --store-dir .cache/pnpm &&
nice -n 10 env GOMODCACHE="$PWD/.cache/go-mod" GOPATH="$PWD/.cache/go" \
  GOCACHE="$PWD/.cache/go-build" GOFLAGS=-modcacherw go mod download &&
nice -n 10 env \
  PATH="$PWD/../../tools/hugo-0.166.0:$PWD/node_modules/.bin:$PATH" \
  HUGO_ENVIRONMENT=production HUGO_CACHEDIR="$PWD/.cache/hugo" \
  GOMODCACHE="$PWD/.cache/go-mod" GOPATH="$PWD/.cache/go" \
  GOCACHE="$PWD/.cache/go-build" GOFLAGS=-modcacherw \
  hugo --minify --baseURL https://hkit.loca.zone/ &&
nice -n 10 ./node_modules/.bin/pagefind --site public

Run install, module download, Hugo and Pagefind serially, stopping if any step fails. The explicit caches keep those build artifacts within the application directory. Build dependencies and module caches may require network access; the static hosting model does not imply an offline initial build. Hugo invokes the installed Tailwind CLI through its asset pipeline, so the local node_modules/.bin directory must be available. The resulting site belongs in apps/hkit/public. See apps/hkit/README.md for the application-owned recipe and evidence/hkit-source-provenance.json for source hashes and local deviations.

GOFLAGS=-modcacherw applies only to these project-local commands, not global Go settings. The module mounts a generated hugo_stats.json inside its cached directory, so the Hugo build needs that directory writable; ordinary Go module downloads make it read-only. The implementation’s module-resolution step reported upstream imaging.quality and imaging.hint deprecation warnings on Hugo 0.166.0. They are not suppressed, and module resolution is not a complete production-build receipt.

The first production-build attempt on Hugo 0.166.0 failed in site_head → css.html:30: TAILWINDCSS could not execute because Hugo’s default security.exec.allow does not include tailwindcss. The local config/_default/hugo.yaml now preserves Hugo’s five documented default executable patterns and adds only the anchored ^tailwindcss$ entry. No wildcard execution allowance or other security relaxation was added. The subsequent production build passed; successful indexing required the separate hero repair below.

The pinned upstream pagefind script suppresses errors with 2>/dev/null || true; its GitHub workflow also masks search failures. SiteKits removes that suppression in apps/hkit/package.json, and the direct command above also propagates failures. Do not use an upstream green build exit as evidence that search was indexed successfully.

Editing map

Repository pathPurpose
apps/hkit/content/_index.mdOfficial one-page starter: type: landing, ordered sections, a Welcome hero and per-block content/design settings
apps/hkit/data/authors/Starter author data; distinct from Markdown page bodies
apps/hkit/config/_default/hugo.yamlSite URL, language, outputs, taxonomies and content cascade rules
apps/hkit/config/_default/params.yamlHugoBlox identity, theme, header and feature settings
apps/hkit/go.modHugoBlox module import/version
apps/hkit/package.json and pnpm-lock.yamlJavaScript toolchain, package commands and resolved dependencies
apps/hkit/publicGenerated deployable HTML/assets/search; never the source editing surface
wikis/hkit/contentThis public operational documentation, built by Quartz separately from the Hugo application

The upstream homepage is the concrete content-model example. The module’s blocks and layouts are library capabilities, not a claim that this starter contains all those content types.

Search and hosting

Upstream config/_default/params.yaml sets both hugoblox.header.search: false and hugoblox.search.enable: false. SiteKits changes both to true in apps/hkit/config/_default/params.yaml to enable the official search interface, not a custom implementation. The generated Pagefind index and the Ownable query/result flow have now passed the bounded browser checks below. Pagefind’s documentation explains why indexing follows HTML generation and why an ordinary development preview alone is insufficient acceptance evidence.

The first attribute-only override on the empty Preact container failed in the parent’s Pagefind 1.5.2 run: zero pages indexed, exit 1, without suppressed errors. Chrome also displayed the original [Hugo Chat](url) and [Ownable CMS](url) syntax as text instead of links. This disproved the assumption that the stock client-rendered hero needed only indexing attributes.

The replacement is a hero-only static rendering adaptation, not a custom search engine or new content. apps/hkit/layouts/_partials/blox/preact-wrapper.html renders the original frontmatter through Hugo’s Page.RenderString into visible semantic HTML, retaining the upstream layout classes. Its visible container carries data-pagefind-body, and the Welcome heading supplies the Pagefind title metadata. The obsolete attribute-only markers are removed. apps/hkit/layouts/_partials/blox/hero/config.html removes only hero from the Preact registry and recomputes whether other Preact blocks remain, preventing the old client renderer from replacing the static links. Other Preact blocks retain the upstream path.

The parent’s production build, Pagefind output and browser receipts now support this repair for the retained starter homepage. Adding other content types still requires checking Pagefind’s indexing coverage: once any data-pagefind-body marker exists, Pagefind excludes pages without one. Reassess the two local overrides against future module upgrades rather than describing this as an unchanged starter deployment.

The existing nginx host serves apps/hkit/public at https://hkit.loca.zone/ behind Authelia one_factor. No Hugo development server or new application daemon belongs in production. HTML, deep links, assets and /pagefind/ must remain within the same authenticated boundary. An authenticated reader can inspect any search index downloaded to their browser.

The wiki is a separate publication: https://wiki.hkit.loca.zone/ is public and its full private build is gated under /private/. Keep the existing private exclusion in wikis/hkit/quartz.config.yaml and the publisher’s private-content boundary intact. A Markdown frontmatter flag alone cannot protect a generated file or search record.

Static hosting eliminates the need for a request-time Hugo process, not nginx, authentication or the separate shared chat service. The earlier starter acceptance does not prove that service.

Wiki publication

From the SiteKits repository root, copy both public and private publication inputs as regular files before the release owner’s serial check-only and publish runs:

install -m 644 wikis/hkit/quartz.config.yaml wikis/hkit/custom.scss /home/loca/dev/wikis/hkit/
install -m 644 wikis/hkit/private/quartz.config.yaml wikis/hkit/private/custom.scss /home/loca/dev/wikis/hkit/private/

Both custom.scss files retain Quartz’s variables import and set html { width: 100%; }, preventing the root’s viewport width from including the vertical scrollbar. Within Quartz’s $mobile breakpoint, the explorer panel uses fixed positioning and width/max-width: 100% to stay within the viewport rather than the inset sidebar. These are per-vault overrides, not shared-engine edits; republish both wiki variants after changing them. The public/private boundary described above remains unchanged.

Observed acceptance and remaining boundaries

On 2026-09-27 the release owner observed Hugo Extended 0.166.0 production generation succeed, reporting 12 pages and four processed images. That generator summary is not the count of distinct navigable HTML files: the output contains five, namely /, /authors/, /categories/, /tags/ and /404.html. The subsequent unsuppressed Pagefind 1.5.2 run succeeded with one English page and 18 indexed words. The taxonomy indexes and error page are not additional populated content examples.

evidence/2026-09-27-sitekits-ae75b9b1/hkit-browser.json records all five HTML routes at both 390 and 1280 pixels, with no recorded console/runtime errors or horizontal overflow. The homepage has a Welcome heading and real Hugo Chat / Ownable CMS anchors; the raw Markdown-link display is gone. At both widths, searching Ownable returned the Welcome homepage, and ArrowDown then Enter selected it, navigated and closed the dialog. Supporting screenshots include hkit-home-390.png, hkit-home-1280.png, hkit-search-390.png and hkit-search-1280.png.

The browser checks served the exact nginx output through isolated loopback 127.0.0.1:51977; this is not an authenticated public-domain login. A visual review caught clipping of the mobile menu control by the long original local header despite the no-overflow measurement. The release owner shortened both config/_default/hugo.yaml’s title and config/_default/params.yaml’s hugoblox.identity.name to HugoBlox Kit: the identity name overrides the site title in the header. The final rebuilt-header check in hkit-header.json reports Home | HugoBlox Kit at both widths, with every visible header control inside the client width; the homepage screenshots were recaptured. An aggregate green check did not supersede this visual finding: the specific defect was repaired and rechecked.

The final build and unsuppressed Pagefind run passed again after the compact-identity change. evidence/2026-09-27-sitekits-ae75b9b1/hkit-assets-and-auth.json enumerates all 36 emitted artifact files: each returned HTTP 200 through loopback and HTTP 302 to auth.loca.zone anonymously at hkit.loca.zone. That includes all 15 /pagefind/ files. This establishes static-file reachability and the anonymous application gate, separately from the loopback browser-content proof.

Shared chat is integrated through apps/hkit/layouts/_partials/hooks/body-end/omp-chat.html, the module’s supported body-end hook, with the upstream footer unchanged. See embed for its loader/element and gated asset/API contract, shared-chat for separate runtime acceptance, and editor for editor OFF. No comparison of build time, memory use, browser bundle weight or search performance is claimed; the retained one-page starter and Fumadocs’ larger handbook are not matched workloads.