kaveh

a simple website generator
git clone git://mahdi.pw/kaveh.git
Log | Files | Refs | README | LICENSE

commit 975ba450ec8c6c31a742e43944c3bd0539ecfc0b
parent 138c830068aa46b227d52e2a323a8ed26ce81d9d
Author: Mahdi Mirzade <[email protected]>
Date:   Tue, 19 Apr 2022 18:20:33 +0430

Small compression for generated files

Diffstat:
Mkaveh | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/kaveh b/kaveh @@ -62,6 +62,10 @@ find "${KVH_SRC}" -name "*.md" | while read FILE; do -e "s/%PAGE_ICON%/${PAGE_ICON}/g" \ -e "s/%KVH_VERSION%/${KVH_VERSION}/g" \ > "${KVH_DST}/${FILE_NAME%.md}.html" + + # Minify html files: (just removing characters within tags, not effecting JS,CSS) + sed -i ':a;N;$!ba;s/>\s*</></g' "${KVH_DST}/${FILE_NAME%.md}.html" + done # Copy the rest files/assets into destination.