bash命令

命令 功能 备注
hexo serve 在本机4000端口上运行博客web服务 测试用
hexo clean 清除本地缓存 推送到远程仓库前清理缓存
hexo g 生成本地静态网页
hexo algolia 调用api生成 algolia 索引
hexo d 推送更改到远程地址
hexo new page categories 创建新类别 每篇文章只能处于一个类别中或者一个类别的子类别中
hexo new page tags 创建新标签 每篇文章可以有多个标签

插件

生成站点地图:

1
2
npm install hexo-generator-sitemap --save
npm install hexo-generator-baidu-sitemap --save

站点地图位置:

1
2
https://blog.magicconch.top/sitemap.xml
https://blog.magicconch.top/baidusitemap.xml