From ccf423c9078f64a81fa9fece2445d78b83f0d965 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Wed, 14 May 2025 21:31:15 -0300 Subject: [PATCH] Use Hugo cache directory - Add a cache directory for Hugo builds. - This improves build times. - The cache is located in $PWD/hugo-cache. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index dba94a8..f4773df 100755 --- a/build.sh +++ b/build.sh @@ -7,4 +7,4 @@ find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.png/\.webp/g' {} \; find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.jpg/\.webp/g' {} \; find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.jpeg/\.webp/g' {} \; -hugo -s . -d /var/www/rogs.me/ --minify +hugo -s . -d /var/www/rogs.me/ --minify --cacheDir $PWD/hugo-cache