What Hugo Does
- Blazing fast builds — 10K pages in <1s
- Markdown content — with front matter (YAML/TOML/JSON)
- Go templates — layouts, partials, shortcodes
- Taxonomies — tags, categories, custom
- Sections — content organization by directory
- i18n — multi-language support
- Asset pipeline — Sass, PostCSS, JS bundling, image processing
- Data templates — JSON, CSV, TOML data files
- Shortcodes — reusable content snippets
- Themes — 400+ community themes
Architecture
Single Go binary. Reads Markdown + templates from disk, renders HTML to public/. No runtime deps, no Node.js, no Ruby. Content model: sections (directories) + taxonomies (tags/categories) + front matter metadata.
Comparison
| Generator | Language | Speed | Templating |
|---|---|---|---|
| Hugo | Go | Fastest | Go templates |
| Astro | JS | Fast | JSX/MDX |
| Jekyll | Ruby | Slow | Liquid |
| Eleventy | JS | Fast | Multiple |
| Zola | Rust | Very fast | Tera |
| Gatsby | JS | Slow | React |
常见问题 FAQ
Q: Hugo vs Astro? A: Hugo 纯静态、Go 模板、最快构建速度;Astro 支持 React/Vue/Svelte 组件、Islands 架构、更灵活但需要 Node.js。纯文档/博客选 Hugo,交互式内容选 Astro。
Q: 主题怎么选? A: https://themes.gohugo.io 有 400+ 主题。推荐 PaperMod(博客)、Docsy(文档)、Ananke(入门)。
来源与致谢 Sources
- Docs: https://gohugo.io/documentation
- GitHub: https://github.com/gohugoio/hugo
- License: Apache 2.0