diff --git a/images/icons/favicon.ico b/images/icons/favicon.ico deleted file mode 100644 index 4d6a4cde..00000000 Binary files a/images/icons/favicon.ico and /dev/null differ diff --git a/images/icons/favicon.png b/images/icons/favicon.png new file mode 100644 index 00000000..0309ab76 Binary files /dev/null and b/images/icons/favicon.png differ diff --git a/images/icons/favicon.webp b/images/icons/favicon.webp new file mode 100644 index 00000000..6cac4dc6 Binary files /dev/null and b/images/icons/favicon.webp differ diff --git a/main.go b/main.go index 50ee9498..2ab5532d 100644 --- a/main.go +++ b/main.go @@ -55,7 +55,11 @@ func main() { // Favicon app.Get("/favicon.ico", func(ctx *aero.Context) string { - return ctx.File("images/icons/favicon.ico") + if ctx.CanUseWebP() { + return ctx.File("images/icons/favicon.webp") + } + + return ctx.File("images/icons/favicon.png") }) // Scripts