Added webp favicon
This commit is contained in:
parent
7296c08844
commit
07702a598f
Binary file not shown.
Before Width: | Height: | Size: 11 KiB |
BIN
images/icons/favicon.png
Normal file
BIN
images/icons/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
images/icons/favicon.webp
Normal file
BIN
images/icons/favicon.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
6
main.go
6
main.go
@ -55,7 +55,11 @@ func main() {
|
|||||||
|
|
||||||
// Favicon
|
// Favicon
|
||||||
app.Get("/favicon.ico", func(ctx *aero.Context) string {
|
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
|
// Scripts
|
||||||
|
Loading…
Reference in New Issue
Block a user