hugo在github配置静态网页
hugo在github上搭建静态网页
安装hugo
在https://github.com/gohugoio/hugo/releases下载相应的安装包;
Ubuntu可以deb包直接进行安装
验证安装是否成功
$ hugo version Hugo Static Site Generator v0.76.5 darwin/amd64 BuildDate: unknown 使用hugo
在某个目录下执行如下命令创建一个网站,例如使用myblog这个名字;
$ cd Documents/myblog/ $hugo new site polarisxu Congratulations! Your new Hugo site is created in ./Documents/myblog/. Just a few more steps and you're ready to go: 1. Download a theme into the same-named folder. Choose a theme from https://themes.gohugo.io/ or create your own with the "hugo new theme <THEMENAME>" command. 2. Perhaps you want to add some content.