diff options
| author | Samuel Johnson <[email protected]> | 2025-11-25 20:59:55 -0500 |
|---|---|---|
| committer | Samuel Johnson <[email protected]> | 2025-11-25 20:59:55 -0500 |
| commit | 42e0b96e75ba13e2994de7cc258db325cebea47c (patch) | |
| tree | 4a182789e5e63b046071030a8f591d35ed44d65c | |
| parent | ee367e65723888bfd8fb9354e896db2a0adae1b0 (diff) | |
Actually make icon available
| -rw-r--r-- | cmd/web/handlers/routes.go | 4 | ||||
| -rw-r--r-- | ui/html/base.tmpl.html | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/cmd/web/handlers/routes.go b/cmd/web/handlers/routes.go index 1ffee3f..6a938fb 100644 --- a/cmd/web/handlers/routes.go +++ b/cmd/web/handlers/routes.go @@ -46,9 +46,5 @@ func RegisterEndpoints(app types.Application, db *sql.DB) *http.ServeMux { blogRouter.HandleFunc("/static/get", static.get) - blogRouter.HandleFunc("/favicon.ico", func(w http.ResponseWriter, r *http.Request) { - http.ServeFile(w, r, "./static/favicon.ico") - }) - return blogRouter } diff --git a/ui/html/base.tmpl.html b/ui/html/base.tmpl.html index 9ff8489..20f59d2 100644 --- a/ui/html/base.tmpl.html +++ b/ui/html/base.tmpl.html @@ -10,6 +10,7 @@ <meta property="og:url" content="https://paterissa.net" /> <meta property="og:description" content={{template "description" .}} /> <title>{{template "title" .}} - Paterissa</title> + <link rel="icon" href="/static/get?file=favicon.ico" type="image/x-icon"> <link rel="stylesheet" href="/static/get?file=app.css"> </head> <body> |
