快速开始#
本文档将帮助你快速上手 Hugo。
安装 Hugo#
macOS#
brew install hugoLinux#
sudo apt-get install hugoWindows#
choco install hugo-extended创建新网站#
hugo new site my-site
cd my-site添加主题#
git init
git submodule add https://github.com/alex-shpak/hugo-book themes/hugo-book创建内容#
hugo new posts/my-first-post.md构建网站#
hugo生成的静态文件会在 public 目录中。
本地预览#
hugo server -D访问 http://localhost:1313 查看效果。