Add favicon
This commit is contained in:
parent
1509789cde
commit
2852be0a87
3 changed files with 30 additions and 1 deletions
|
|
@ -45,6 +45,10 @@ func (s *Server) SetStats(q StatsQuerier) {
|
|||
|
||||
// ServeHTTP handles incoming HTTP requests strictly on the configured single endpoint.
|
||||
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
if r.URL.Path == "/favicon.svg" {
|
||||
s.serveFavicon(w, r)
|
||||
return
|
||||
}
|
||||
if r.URL.Path == "/monitor" || strings.HasPrefix(r.URL.Path, "/monitor/") {
|
||||
s.serveMonitor(w, r)
|
||||
return
|
||||
|
|
@ -620,6 +624,7 @@ a:hover { color: var(--accent); }
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||
<title>{{.Title}}</title>
|
||||
{{template "pagecss" .}}
|
||||
</head>
|
||||
|
|
@ -817,6 +822,7 @@ a:hover { color: var(--accent); }
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||
<title>{{.Title}}</title>
|
||||
{{template "pagecss" .}}
|
||||
</head>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue