hexo-admin是一个可直接在网页中编辑 hexo 文章插件
deploy功能
调用本地脚本,可接收页面中的message作为参数

deployCommand
参数中配置的脚本中可使用$1
接收参数,多个参数用空格分隔,如果只有一个参数,输入框中不能有空格。
1 2 3 4 5 6
| #!/bin/bash git add . git commit -m $1 git push origin main echo "发布完成!"
|
修改 Post路径
新建 post 后可在 Markdown 编辑页面中修改路径,如下图所示:

修改后保存到指定位置,如下图所示:

ps:有个 bug,有点时候会导致服务断掉。