Hexo博客使用笔记

持续更新Hexo博客的使用方法和技巧

如何发布新文章

以下为gitbash命令。其他命令行工具,命令有所不同。

1
2
3
4
5
6
7
8
9
$ hexo new [layout] <title>		# 生成文章 ,不同layout保存路径不同,见下表。

$ cd .deploy_git # 转到master目录下

$ hexo clean # 清除旧文档

$ hexo g # 生成新文档

$ hexo d # 发布新文档
布局 路径
post source/_posts
page source
draft source/_drafts

更多内容:写作