Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.