Skip to content

Instantly share code, notes, and snippets.

@dongfg
Created January 18, 2019 05:48
Show Gist options
  • Save dongfg/1f89f88969f7712298db456d6ddcba35 to your computer and use it in GitHub Desktop.
Save dongfg/1f89f88969f7712298db456d6ddcba35 to your computer and use it in GitHub Desktop.
delete blank lines of hexo generate html
# execute after hexo g;
# if you are use macos, use gsed instead sed(brew install gnu-sed);
find public -type f -name *.html -exec sed -i '/^[[:space:]]*$/d' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment