上传博客步骤

hexo new test

在博客的根目录下,点击鼠标右键,打开“git bash”,输入“hexo new 文章题目”
例如,输入 hexo new test,创建一篇题目为“test”的博客文章
例如:博主的本目录的地址是:E:\studydata\bolg
bolg下有public、source等文件夹。

打开test.md

新建的文件在E:\studydata\bolg\source\_posts下,使用sublime打开它

hexo clean

清除根目录中public 文件中的内容。如果不清除,当在本地修改旧文章的内容后,网站的内容没有改变。

hexo d -g

部署上传

hexo s -g

本地预览,地址为: http://localhost:4000/
按ctrl + c 结束预览

您的支持将鼓励我继续创作!