cremeaux/run

28 lines
608 B
Bash
Executable File

#!/bin/bash
# -e Exit immediately if a command exits with a non-zero status.
# -u Treat unset variables as an error when substituting.
set -eu
. ./.env
. ./themes/hugo-theme-lowtech/scripts/run
help() {
help_generic
echo "- ./run favicon 🎨 Création du favicon"
echo
}
favicon() {
# https://stackoverflow.com/questions/39256104/how-to-convert-an-image-file-from-svg-to-a-multi-size-ico-without-blur-sharp
convert -density 300 -define icon:auto-resize=48,32,16 -background none static/icons/blason-512x512.png static/favicon.ico
}
if [ $# -ge 1 ]; then
$@
else
help
fi
end