
用 hexo 配合 Github Pages 写博客,但是经常会有在不同设备上发布的需要,就用 Onedrive 来做文件的同步和备份。但是 Hexo 每次 Deployed 之后都会生成一个 .deploy_git 的文件夹,Onedrive 在同步的时候需要对比很久,于是就想写个脚本每次发布之后清理一下。
发到 Githb 了,但是其实内容很简单,懒得看的我就直接贴出来了。
https://github.com/raphaelli/hexo_tool
大家要是有其他的脚本可以 PR
# 清理 hexo clean && rm ./.deploy_git -rf && echo "Clean Finished !" && echo "press any key to quit!" && read # 发布后清理 hexo g -d && echo "G-D Finished !" && hexo clean && rm ./.deploy_git -rf && echo "Clean Finished !" && echo "press any key to quit!" && read # 新建文章并使用 VSCODE 打开 echo "Please input the article name:" && read name && echo "log:hexo new" $name && hexo new $name && echo $name" add completed !" && code "./source/_posts/"$name".md" && read 确实是很简单的脚本,大佬们勿喷,也就是偷个懒的功夫。
斗胆留下博客地址 https://ns96.com
1 mafeifan 2019-01-25 11:44:00 +08:00 via Android 访问速度挺快的,用的什么主机 |
3 akira 2019-01-30 22:44:35 +08:00 tx 的 cdn 需要备案么 |