Minimal Hugo static site for cominvent.com
(the apex domain is canonical; www redirects to it).
Self-contained: custom layouts in layouts/, no external theme.
- Hugo extended (
hugo versionshould print+extended). On macOS:brew install hugo.
hugo server -D # live-reload preview at http://localhost:1313Content lives in content/ (Markdown). Edits reload automatically.
hugo --gc --minify # baseURL (https://cominvent.com/) comes from hugo.tomlOutputs the finished site to public/ (gitignored).
content/ Markdown (_index.md home + pages)
layouts/ Self-contained templates (baseof/single/list + index)
static/ Assets copied verbatim (css/)
hugo.toml Site config (baseURL, menu, params)
.htmltest.yml Link/image lint config
.github/workflows/ CI: build + lint on PR, build + deploy on push to main
.github/workflows/deploy.yml:
- Pull request → main: build + htmltest lint (broken internal links & images). No deploy.
- Push / merge → main: build, then
rsyncpublic/to the host over SSH.
Deploy target is set via env in the workflow
(DEPLOY_HOST, DEPLOY_USER, DEPLOY_PATH). The SSH deploy key's private half
is stored in the repo secret COMINVENT_DEPLOY_KEY; its public half must be
installed on the host's site user.