X

但行前路,莫问前程

0%

hexo发布脚本

一键发布文章

win

1
2
3
4
5
6
7
@echo off
cd [hexo目录]
call hexo clean
call hexo g -d
echo Hexo operations completed.
pause

创建.bat 文件,点击执行即可

mac

1
2
3
4
5
6
cd [指定路径]
hexo clean
hexo g
hexo d
echo "completed"
read -p "Press any key to continue."

注意给足权限,777