From 526ae6edc7675ccab41f7b854cc277088f02e0ab Mon Sep 17 00:00:00 2001 From: demo Date: Thu, 7 May 2026 16:00:07 -0400 Subject: feat: add some demo CSS --- main.go | 1 + views/index.gohtml | 2 +- views/static/style.css | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 views/static/style.css diff --git a/main.go b/main.go index f070c9b..5db260b 100644 --- a/main.go +++ b/main.go @@ -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 @@ - + {{ 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; +} -- cgit v1.2.3