diff options
Diffstat (limited to '')
-rw-r--r-- | main.go | 1 | ||||
-rw-r--r-- | static/style.css | 0 | ||||
-rw-r--r-- | templ/base.tpl | 4 |
3 files changed, 3 insertions, 2 deletions
@@ -50,6 +50,7 @@ func main() { mux.Handle("GET /login", loginPage()) mux.HandleFunc("POST /login", handleLogin) mux.Handle("GET /logout", handleLogout()) + mux.Handle("/static/", http.StripPrefix("/static", http.FileServer(http.Dir("static")))) mux.Handle("/favicon.ico", http.NotFoundHandler()) handler := sessionHandler(mux) diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/static/style.css diff --git a/templ/base.tpl b/templ/base.tpl index e88d735..89e095f 100644 --- a/templ/base.tpl +++ b/templ/base.tpl @@ -3,14 +3,14 @@ <head> <meta charset="UTF-8"> <title>{{block "title" .}}Kosten{{end}}</title> - <link rel="stylesheet" href="./style.css"> + <link rel="stylesheet" href="/static/style.css"> </head> <body> {{block "body" .}} Dummy Text {{end}} {{block "js" .}} - <script src="./index.js"></script> + <script src="/static/index.js"></script> {{end}} </body> </html>
\ No newline at end of file |