GitHub Pages with Hexo tips

基础部分

常用指令:

1
2
3
4
5
$ hexo generate # 生成静态文件
$ hexo serve # 启动服务器
$ hexo deploy # 部署网站
$ hexo clean # 清除缓存文件 (db.json) 和已生成的静态文件 (public)
$ hexo new [layout] <title> # 新建一篇文章

参考:官方文档

主题

我这里使用的主题是 fluid (hexo-theme-fluid)

问题

1
2
$ ERROR Deployer not found: git # question
$ npm install hexo-deployer-git –save # solution

技巧

VS Code预览Markdown快捷键:Ctrl+Shirt+V

教程:博客


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!