Wowie what a gay little website for my gay little self aria.coffee
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Setup auto-image compression on build

+18 -1
+17
compress-images.sh
··· 1 + #!/bin/bash 2 + 3 + if command -v jpegoptim >/dev/null 2>&1 ; then 4 + echo "jpegoptim found" 5 + find ./public \( -iname "*.jpg" -o -iname "*.jpeg" \) | jpegoptim -p -P --files-stdin -w $(nproc --all) 6 + else 7 + echo "jpegoptim was not found! install either with your package manager or get the binary from the github" 8 + echo "https://github.com/tjko/jpegoptim/releases/latest" 9 + fi 10 + 11 + if command -v oxipng >/dev/null 2>&1 ; then 12 + echo "oxipng found" 13 + oxipng -o max -a -r ./public 14 + else 15 + echo "oxipng was not found! install with your package manager, cargo or get the binary from the github" 16 + echo "https://github.com/shssoichiro/oxipng/releases/latest" 17 + fi
+1 -1
package.json
··· 4 4 "version": "0.0.1", 5 5 "scripts": { 6 6 "dev": "astro dev", 7 - "build": "astro build", 7 + "build": "astro check && ./compress-images.sh && astro build", 8 8 "preview": "astro preview", 9 9 "astro": "astro" 10 10 },