Hugo
1.1 创建文件
# 切换到博客目录
$ hugo new post/xxxxx.md
1.2 发布到本地预览网站
$ hugo server --theme=greyshade --buildDrafts --watch
1.3 发布网站到github
$ hugo --theme=greyshade --buildDrafts
$ cd public
$ git add *
$ git commit -a -m 'add all'
$ git push origin master
1.4 添加图片到文件
The images should be put in the static folder, which will be copied to the root of the website (so their url is www.example.com/image.png) by Hugo.
所以在static目录中创建文件夹,然后在markdown中直接引用即可。
例子如下:
static
└── android-fetch-add-custom-cookie
└── react-native-fetch-0.44.png
在markdown中则需要如下方式引用:
![](android-fetch-add-custom-cookie/react-native-fetch-0.44.png)