Last active
July 31, 2018 00:38
-
-
Save jtloong/60d4449eb45e0c7104264f082cf75058 to your computer and use it in GitHub Desktop.
Simple bash script to remove published posts from your Hexo blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
POST_DIR=source/_posts/ | |
rm $POST_DIR$1.md | |
rmdir $POST_DIR$1/ | |
hexo clean | |
hexo generate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment