总共需要下载的东西-windows
- hugo
现在你需要下载的安装包有:
- hugo-64位windows版本
步骤
- 解压下载文件到指定目录下
- 把hugo_0.15_windows_amd64.exe(就是你解压出来的exe文件名啦)改成hugo.exe方便使用
- 在该目录下运行cmd
输入hugo new site mysite生成一个mysite文件夹
文件结构为- archetypes
- content
- data
- layouts
- static
config.toml
新建一个themes文件夹,Git Bash Here,输入
git clone https://github.com/spf13/hyde.git
随便下载个模版~- 将hugo.exe复制到mystie文件夹下,cmd运行
hugo server --theme=hyde -D --watch
- 打开
http://127.0.0.1:1313/
查看现在的页面~~ - 部署到github上:
hugo -t=hyde --baseUrl="http://yourname.github.io/"
(一定要按照这个格式写,不然可能会有意想不到的小bug哟)- 生成一个public文件夹,将这个文件夹上传到你的github就行啦~