From d5b6cf585caa030de512814955f1b647f2a3737e Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Wed, 14 May 2025 21:26:43 -0300 Subject: [PATCH] Add hugo cache directory - Specifies a cache directory for hugo builds. - Improves build performance by caching hugo assets. - Sets the cache directory to $PWD/hugo-cache. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 5418030..c2b9e4e 100755 --- a/build.sh +++ b/build.sh @@ -2,4 +2,4 @@ find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp -lossless $1 -o "${1%.png}.webp"' _ {} \; find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.png/\.webp/g' {} \; -hugo -s . -d /var/www/yams.media/ --minify --cleanDestinationDir --gc --verbose +hugo -s . -d /var/www/yams.media/ --minify --cleanDestinationDir --gc --verbose --cacheDir $PWD/hugo-cache