Created
January 18, 2019 05:48
-
-
Save dongfg/1f89f88969f7712298db456d6ddcba35 to your computer and use it in GitHub Desktop.
delete blank lines of hexo generate html
This file contains hidden or 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
# 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