Browse Source

minimize_html function

master
Mablr 2 years ago
parent
commit
20205d0920
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      bb.sh

+ 8
- 0
bb.sh View File

@ -1108,6 +1108,13 @@ date_version_detect() {
fi
}
# Extra function which minize all html
minimize_html() {
for file in $(ls *.html); do
sed -i ':a;N;$!ba;s/\n//g' $file
done
}
# Main function
# Encapsulated on its own function for readability purposes
#
@ -1178,6 +1185,7 @@ do_main() {
all_tags
make_rss
delete_includes
minimize_html
}


Loading…
Cancel
Save