基于Hugo搭建个人博客:
必备:下载并配置git ,下载hugo并配置环境变量
1 C:\Users>hugo version
Hugo Static Site Generator v0.70.0-7F47B99E windows/amd64 BuildDate: 2020-05-06T11:17:50Z
2 C:\Users>hugo new site myblog //创建Hugo个人站点
Congratulations! Your new Hugo site is created in C:\Users\myblog.
3 C:\Users>cd myblog/****//进入博客根目录
4 C:\Users\myblog>git clone https://github.com/vaga/hugo-theme-m10c.git themes/m10c
//下载一个博客主题
//主题下载地址:https://themes.gohugo.io/
Cloning into ‘themes/m10c’…
remote: Enumerating objects: 276, done.
remote: Total 276 (delta 0), reused 0 (delta 0), pack-reused 276
Receiving objects: 100% (276/276), 447.43 KiB | 110.00 KiB/s, done.
Resolving deltas: 100% (91/91), done.
5 C:\Users\myblog