1. Install hugo
1) Download
Releases Hugo , select hugo_xxx_Windows-64bit.zip (xxx-bit version).
2) set the path
My Computer -> Properties - "Advanced System Settings -" Environment Variables
Hugo added to the directory after decompression in the path.
E.g:
D:\program\hugo_0.68
2. Use hugo
1) generating station
hugo new site \gitee\my\blog
2) generating article
cd gitee\my\blog hugo new first.md
3) Installation skin
For example: my (hugo-theme-casper)
git clone https://github.com/vjeantet/hugo-theme-casper.git
Cloning of the pull-down warehouse, copied to the "themes".
4) Set site configuration
config.toml
baseURL = "https://xiaobin80.gitee.io/blog/" languageCode = "zh-cn" title = "我的技术blog" theme = "hugo-theme-casper" publishdir = "../blog"
3. Publish
1)clone gitee
git clone https://gitee.com/xiaobin80/blog.git
Put this into the warehouse, before we produced "gitee" directory.
2)publish
hugo
Note: At the time of publication of our article "draft = true" to get rid of!
4. Submit and update
1) submitting our warehouse code specific operations, see " Git clients (Windows systems) use "
2) update our blog on gitee
Open URL: https://xiaobin80.gitee.io/blog/
We can see that we use markdown to write a blog.
Reference documents: