Skip to content

Instantly share code, notes, and snippets.

@jtloong
Last active July 31, 2018 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtloong/60d4449eb45e0c7104264f082cf75058 to your computer and use it in GitHub Desktop.
Save jtloong/60d4449eb45e0c7104264f082cf75058 to your computer and use it in GitHub Desktop.
Simple bash script to remove published posts from your Hexo blog
#!/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