Add a slugify filter
I found this here
slugify () {
local str
str="$(cat /dev/stdin)"
echo "$str" | iconv -c -t ascii//TRANSLIT | sed -E 's/[~^]+//g' | sed -E 's/[^a-zA-Z0-9]+/-/g' | sed -E 's/^-+|-+$//g' | tr '[:upper:]' '[:lower:]'
}
Edited by Léonard Messier