From bb2a1950074eb1cbd8dc3f78078d7bde94b24a9d Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 14 May 2024 11:46:29 +0200 Subject: [PATCH] added favicon --- src/static/main.go | 2 ++ static/images/favicon.ico | Bin 0 -> 1150 bytes static/main.go | 1 + templates/head.html | 1 + 4 files changed, 4 insertions(+) create mode 100644 static/images/favicon.ico diff --git a/src/static/main.go b/src/static/main.go index d4e1e9b..3daca29 100644 --- a/src/static/main.go +++ b/src/static/main.go @@ -21,6 +21,8 @@ func GetStatic(staticfiles *embed.FS, c echo.Context) (err error) { c.Response().Header().Set(echo.HeaderContentType, echo.MIMEApplicationJavaScript) } else if strings.HasSuffix(name, ".css") { c.Response().Header().Set(echo.HeaderContentType, "text/css") + } else if strings.HasSuffix(name, ".ico") { + c.Response().Header().Set(echo.HeaderContentType, "image/x-icon") } c.Response().Header().Add(echo.HeaderCacheControl, "max-age=172800") return c.String(http.StatusOK, string(content)) diff --git a/static/images/favicon.ico b/static/images/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..22fbb007ee865c3154a31bae8a165ebd4b3535f3 GIT binary patch literal 1150 zcmchVJugI25Qb+%LW8Z8tPVehzu_17sw65UH8w;PqR?v)3XPypOLVIdm4@{^cCOrP zuCEZYdG48cXU^HV=T1b8U%ehY8!^)xF&q)&fP~V~S^m@f`#ESPv#e@g*&qem@B(eP zOZ1;%3kIOd+ z=$kiZjqg&vk454Ku>J&m--C?R^wrE6TRRVhZQ>keFwJUhU&b!|pf+WIS-bw`bso*s zjH>o~R`>o5i_?DF|0L)9KJ-=A&l!gs%)GuCZG2-nbp&*sM&bJnWNGwj3uysz^7 zsySmH?IrbY-p2y?T}0m*`*Um4< +