TEST

如何使用

新建一篇博文

1
hexo new 新的博文

然后用文本编辑器去编辑_posts/这是一篇新的博文.md里的内容即可,注意要使用Markdown格式书写。
详细使用方法可以查阅 https://hexo.io/zh-cn/docs/writing

编辑完文章保存后可以使用如下命令,生成本地页面 http://localhost:4000/ ,进行预览

1
2
3
4
5
// Git BASH终端
hexo cl && hexo s
// 或者
// VSCODE终端
hexo cl; hexo s

确认无误后使用以下命令,将本地文章推送至GitHub仓库即可

1
2
3
4
5
// Git BASH终端
hexo cl && hexo g && hexo d
// 或者
// VSCODE终端
hexo cl; hexo g; hexo d

VSCODE 终端首次执行报错

使用管理员身份打开 powershell ,输入以下命令

1
Set-ExecutionPolicy RemoteSigned

More info: cmliussss

参考资料
https://hexo.io/zh-cn/
https://www.fomal.cc/posts/e593433d.html
https://docs.anheyu.com/

https://github.com/hexojs/hexo