Hugo static site for green-coding.io. Deployed to GitHub Pages via .github/workflows/hugo.yml on push to main.
- Hugo (extended, v0.148.1) — static site generator
- PostCSS + PurgCSS — CSS bundling (
postcss.config.js) - i18n — English (default) and German; filename-extension approach (e.g.
about.de.md)
| Path | Purpose |
|---|---|
content/ |
Markdown pages and sections (blog, case-studies, talks-and-events, …) |
layouts/ |
HTML templates and partials |
assets/ |
JS/CSS source files bundled via Hugo pipes (not served directly) |
static/ |
Files served as-is (images, slides, fonts) |
i18n/ |
Translation strings (en.yaml, de.yaml) |
data/ |
Structured data consumed by templates |
- Posts with a future
datewill not render unlessbuildFuture = trueis set (it is inconfig.toml). - German translations live next to the English file with a
.de.mdsuffix. - Raw HTML inside
.mdis allowed (markup.goldmark.renderer.unsafe = true).
- Add new CSS/JS files to
layouts/partials/site-style.htmlorsite-scripts.htmlso they are included in the bundle. - Do not put bundled source files in
static/; useassets/instead.
hugo --minify --gc # Test if everything builds correctly- New
.de.mdlayout files require a server restart (no hot reload for layout locale variants). - String translations go in
i18n/de.yaml/i18n/en.yaml.