avatar

hexo发布文章参数设置-备忘

可使用==坚果云==备份
插入本地图片的时候一定要用==/==
例如:

1
![Page Front-matter](2020-1-12/front.png)

1. 发布设置:

在博客主目录的_config.yml文件中。
默认生成草稿文档
发布命令

1
hexo new [文章名]

创建文章
文件夹

2. front-matter设置:

参数
Page Front-matter

2.1. tags(标签)设置:

tags设置

2.2. categories(分类)设置:

categories设置

front-matter

3. 发布时命令:

发布草稿文章:

1
hexo publish [文章名]


然后

1
2
hexo g
hexo d

上传博客

1
hexo clean&&hexo g&&gulp&&hexo d(gulp:压缩指令)

进行hexo博客备份

1
2
3
git add .
git commit -m "1"
git push origin hexo
Author: L0x1c
Link: https://l0x1c.github.io/2020/01/12/2020-1-12/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Donate
  • 微信
    微信
  • 支付寶
    支付寶