Hugo 静态博客速览
用 Hugo 搭静态博客:
- 写 markdown(
content/posts/*.md) - 顶部导航在
hugo.toml的[menus.main]配置 - 主题样式在
static/css/style.css - 搜索用 Pagefind(构建后
npx pagefind --site public)
发布走 git push → post-receive 钩子自动构建。
用 Hugo 搭静态博客:
content/posts/*.md)hugo.toml 的 [menus.main] 配置static/css/style.cssnpx pagefind --site public)发布走 git push → post-receive 钩子自动构建。