Hugo static site for scikit-build.org.
- Hugo (extended) v0.146.0+
- Go (theme is a Hugo module, not a submodule)
# Dev server (live reload, drafts included)
hugo server --buildDrafts
# Build for production (minify, correct baseURL)
hugo --minify --baseURL "https://scikit-build.org/"
# Update PaperMod theme to latest
hugo mod get github.com/adityatelange/hugo-PaperMod@master && hugo mod tidylayouts/index.html— fully custom home page (overrides PaperMod list layout). Pulls project cards fromdata/projects.yaml.data/projects.yaml— single source of truth for project cards. Fields:name,description,github,docs,pypi,labels.content/events/— events section with customlayouts/events/templates.assets/css/extended/— custom CSS auto-loaded by PaperMod. No import needed. Use PaperMod CSS variables (--border,--primary,--theme,--entry) for free dark mode support.- Logos are in
static/images/from the upstreamscikit-build/scikit-buildrepo. Do not rename;layouts/index.htmlandhugo.tomlreference them by path.
- Adding a project card: edit
data/projects.yamlonly. - Adding a page: create
content/<section>/<page>.mdwith front matter, then add a[[menu.main]]entry inhugo.toml. - CSS: always add to
assets/css/extended/. Never hard-code colors — use PaperMod variables. - Prettier is enforced via pre-commit (
.pre-commit-config.yaml). Runpre-commit run --all-filesbefore pushing.
Push to main triggers .github/workflows/deploy.yml, which builds with Hugo (extended) and publishes to GitHub Pages. No manual step needed.