Hugo 简介
Hugo 是一个用 Go 语言编写的静态网站生成器,它以速度快、易用性强著称。
安装 Hugo
Windows
choco install hugo-extended
macOS
brew install hugo
创建新站点
hugo new site myblog
cd myblog
添加主题
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
创建文章
hugo new posts/my-first-post.md
本地预览
hugo server -D
访问 http://localhost:1313 即可预览博客。
总结
Hugo 是一个非常适合搭建长安的个人博客的工具,它的速度快、配置简单,非常适合开发者使用。