hscc

Soure code of <https://hugo.soucy.cc>.
git clone git://soucy.cc/hscc.git
Log | Files | Refs

commit d137f538e100fe4186ea03493a2d18f14171b7a0
parent c3540e254b4cf05a56acc3d03ad6f2ed485dd5dd
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri, 25 Feb 2022 21:02:35 -0500

Update css shell script and go more granular

Diffstat:
Msrc/css/css.sh | 33++++++++++++++++++++-------------
1 file changed, 20 insertions(+), 13 deletions(-)

diff --git a/src/css/css.sh b/src/css/css.sh @@ -4,9 +4,11 @@ dst="../../public_html/css/" +# Top bundle +# Return top.min.css in $dst while read -r line; do [ -n "$line" ] && cat "./$line" -done <<-EOF > "${dst}index.css" && cssmin "${dst}index.css" > "${dst}index.min.css" +done <<-EOF | cssmin > "${dst}top.min.css" global/tokens/typography.css global/tokens/colors.css global/tokens/grid.css @@ -19,23 +21,28 @@ atoms/typography/quotes.css atoms/buttons/button.css modules/go-to.css -modules/nav.css -modules/main.css modules/header-banner.css -modules/footer-banner.css -modules/hcard.css +modules/main.css modules/hentry.css -modules/hfeed.css -modules/hresume.css modules/xfn.css -modules/archives.css -modules/tags.css -modules/webmentions.css EOF -# cp print.css "${dst}print.css" +# Bottom bundle +# Return bottom.min.css in $dst +while read -r line; do + [ -n "$line" ] && cat "./$line" +done <<-EOF | cssmin > "${dst}bottom.min.css" +modules/webmentions.css +modules/nav.css +modules/footer-banner.css +EOF -# cssmin "${dst}index.css" > "${dst}index.min.css" -# cssmin "${dst}print.css" > "${dst}print.min.css" +# Modular +cssmin modules/hcard.css > "${dst}hcard.min.css" +cssmin modules/hfeed.css > "${dst}hfeed.min.css" +cssmin modules/hresume.css > "${dst}hresume.min.css" +cssmin modules/archives.css > "${dst}archives.min.css" +cssmin modules/tags.css > "${dst}tags.min.css" +cssmin print.css > "${dst}print.min.css" echo "CSS builded! @ $(date +"%Y-%m-%d %T")"