diff --git a/cmd/willow.go b/cmd/willow.go index 6229cfc..bebbf64 100644 --- a/cmd/willow.go +++ b/cmd/willow.go @@ -105,11 +105,11 @@ func main() { } mux := http.NewServeMux() - mux.HandleFunc("/", wsHandler.RootHandler) - mux.HandleFunc("/static", ws.StaticHandler) + mux.HandleFunc("/static/", ws.StaticHandler) mux.HandleFunc("/new", wsHandler.NewHandler) mux.HandleFunc("/login", wsHandler.LoginHandler) mux.HandleFunc("/logout", wsHandler.LogoutHandler) + mux.HandleFunc("/", wsHandler.RootHandler) httpServer := &http.Server{ Addr: config.Server.Listen, diff --git a/ws/static/home.html b/ws/static/home.html index 75d5d7d..51a2187 100644 --- a/ws/static/home.html +++ b/ws/static/home.html @@ -4,39 +4,29 @@
Currently running {{ .Running }}.
- {{- if ne .Running (index .Releases 0).Tag -}} -New release available: {{ (index .Releases 0).Tag }}. Update?
+Currently running {{ .Running }}.
+ {{- if ne .Running (index .Releases 0).Tag -}} +New release available: {{ (index .Releases 0).Tag }}. Update?
Expand release notes
@@ -49,7 +39,8 @@ html {
{{- end -}}