summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-19 22:20:29 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-19 22:20:29 -0300
commita6f0f39384a5255b883a6146f69514b00a3c0bb1 (patch)
tree6fb7aed0c57e62f13220fd8afa7bb8578b84748e /build.sh
parent12dd1e947c99c94e0672bf5567a3064bdfa8da30 (diff)
Changed hugo build command
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 881746d..5418030 100755
--- a/build.sh
+++ b/build.sh
@@ -2,5 +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' {} \;
-rm -rf /var/www/yams.media/*
-hugo -s . -d /var/www/yams.media/
+hugo -s . -d /var/www/yams.media/ --minify --cleanDestinationDir --gc --verbose