diff options
| -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> |
