Hexo 编写文章并部署

typora 软件 .md文件编辑器

文章文件位置

将写好的md文件放到 Hexo\hexodemo\source_posts 目录下

常用快捷键

ctrl + alt + z 插入代码
ctrl + shift + i 插入图片
ctrl + alt +u 插入点
ctrl + shift + q插入文字详情块
ctrl + 1,2,,3,4,5 标题

编辑好后
Hexo\hexodemo 目录下
shift + 鼠标邮件 打开 git bash

常用命令

Typora设置插入代码块快捷键方法

文件-偏好设置-打开高级设置-conf.user.json

1
2
3
4
5
6
7
8
9
10
11
  "keyBinding": {
// for example:
"Always On Top": "Ctrl+Shift+P",
"Code Fences": "Ctrl+Alt+Z",
"Oedered List": "Ctrl+Alt+o",
"Unordered List": "Ctrl+Alt+u"

},
————————————————


原文链接:https://blog.csdn.net/weixin_44874806/article/details/97155001

更新本地服务

hexo clean
hexo generate
hexo server -p 4000
本地服务 http://localhost:4000/

上传文章部署代码到线上

hexo clean && hexo g && hexo d

线上地址

luckyangyang.github.io


Hexo 编写文章并部署
http://www.dwyblog.cn/2018/07/08/Hexo_编写文章/
作者
幸福来敲门
发布于
2018年7月8日
许可协议