diff options
| -rw-r--r-- | main.go | 1 | ||||
| -rw-r--r-- | views/index.gohtml | 2 | ||||
| -rw-r--r-- | views/static/style.css | 3 |
3 files changed, 5 insertions, 1 deletions
@@ -48,6 +48,7 @@ func main() { // Set up the handlers and server. mux := http.NewServeMux() mux.Handle("/{arc}", &cfg) + mux.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("views/static")))) log.Fatal(runServer(mux, *port)) } diff --git a/views/index.gohtml b/views/index.gohtml index 752f928..03573ee 100644 --- a/views/index.gohtml +++ b/views/index.gohtml @@ -7,7 +7,7 @@ <meta name="author" content="" /> <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" /> <title></title> - <link href="css/style.css" rel="stylesheet" /> + <link href="static/style.css" rel="stylesheet" /> </head> <body> {{ template "page" . }} diff --git a/views/static/style.css b/views/static/style.css new file mode 100644 index 0000000..ec71292 --- /dev/null +++ b/views/static/style.css @@ -0,0 +1,3 @@ +a { + color: red; +} |
