关于 Hugo
关于 Hugo
Hugo 是一个快速的静态网站生成器,使用 Go 语言编写。
特点
- 快速:构建速度极快,通常只需几毫秒到几秒
- 灵活:支持多种内容类型和自定义布局
- 强大:内置短代码、多语言支持等功能
安装
# Ubuntu/Debian
sudo apt-get install hugo
# macOS
brew install hugo
# Windows
choco install hugo -confirm
基本命令
# 创建新站点
hugo new site mysite
# 启动开发服务器
hugo server -D
# 构建生产版本
hugo