diff options
| author | demo <demo@antix1> | 2026-05-07 16:00:07 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-07 16:00:07 -0400 |
| commit | 526ae6edc7675ccab41f7b854cc277088f02e0ab (patch) | |
| tree | dc5dd923d1127a8ae4bff972c02f49927beb1265 | |
| parent | 5aecda4a8006c74e8c912d937fb9b282630bb883 (diff) | |
feat: add some demo CSS
| -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; +} |
