From a331e89ff85c5ca2d23133acbc80a36351c369fc Mon Sep 17 00:00:00 2001 From: Kelvin Ly Date: Sat, 20 Jun 2020 10:25:13 -0400 Subject: [PATCH] Use static/main.css instead of ./main.css --- main.css | 93 -------------------------------------------------------- main.go | 3 +- 2 files changed, 1 insertion(+), 95 deletions(-) delete mode 100644 main.css diff --git a/main.css b/main.css deleted file mode 100644 index 6894816..0000000 --- a/main.css +++ /dev/null @@ -1,93 +0,0 @@ -html { - box-sizing: border-box; -} - -*, *:before, *:after { - box-sizing: inherit; -} - -body { - margin: 0; - background-color: rgb(240, 240, 240); - position: relative; - min-height: 100vh; - font-family: 'Roboto', sans-serif; -} - -article { - max-width: 1012px; - margin-right: auto; - margin-left: auto; - padding-bottom: 4em; -} - -nav { - background-color: rgb(32, 32, 32); - margin-right: auto; - margin-left: auto; - color: rgb(180, 220, 180); -} - - -footer { - position: absolute; - bottom: 0; - width: 100%; - height: 2.5rem; -} - -a { - text-decoration: none; -} - -nav a { - color: rgb(220, 220, 250); -} - - -.footer-wrapper, .nav-wrapper { - max-width: 1012px; - margin-right: auto; - margin-left: auto; -} - -.nav-wrapper { - display: flex; - flex-direction: row; - justify-content: flex; - flex-wrap: wrap; -} - -.nav-item { - transition: 0.3s; - padding-top: 1.2em; - padding-bottom: 1.2em; -} - -.nav-item a { - padding-left: 1.8em; - padding-right: 1.8em; - padding-top: 1.2em; - padding-bottom: 1.2em; - font-size: 1.2em; - transition: 0.3s; -} - -.nav-item:hover { - background-color: rgb(180, 220, 200); - transition: 0.3s; -} - -.nav-item:hover a { - transition: 0.3s; - color: rgb(5, 35, 35); -} - -.footer-wrapper { - text-align: right; - padding-top: 1.0em; - padding-bottom: 1em; - padding-left: 1.0em; - padding-right: 1.0em; - /*bottom: 0;*/ -} diff --git a/main.go b/main.go index f030c36..de4ed26 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ import ( //blackfriday "gopkg.in/russross/blackfriday.v2" ) -const DEBUG = false +const DEBUG = true const DOMAIN_NAME = "threefortiethofonehamster.com" @@ -183,7 +183,6 @@ func startServer(srv *http.Server) { //serveMux.Handle("/certbot/", http.StripPrefix("/certbot/", http.FileServer(http.Dir("./certbot-tmp")))) serveMux.Handle("/gfm/", http.StripPrefix("/gfm", http.FileServer(gfmstyle.Assets))) serveMux.Handle("/resize/", Cache(Resize(640, http.StripPrefix("/resize", http.FileServer(http.Dir("static/")))))) - serveMux.HandleFunc("/main.css", func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "main.css") }) if webhookKey != nil { log.Print("web hook found") serveMux.HandleFunc("/update", func(w http.ResponseWriter, r *http.Request) {