1、下载hugo
https://github.com/gohugoio/hugo/releases
解压,配置环境变量
hugo version
2、创建站点项目
hugo new site miracweb
创建完成
3、添加主题
https://github.com/devcows/hugo-universal-theme
进入站点目录执行
git clone https://github.com/devcows/hugo-universal-theme.git themes/universal
然后把exampleSite下面的文件复制到站点目录miracweb下。
修改miracweb下面的config.toml文件
baseurl = "http://localhost" theme = "universal" themesDir = "/themes"
4、启动
hugo server -D
打包部署
hugo
把public下面的东西,当作静态文件,用nginx部署即可