Use static/main.css instead of ./main.css

This commit is contained in:
Kelvin Ly 2020-06-20 10:25:13 -04:00
parent cb792d4496
commit a331e89ff8
2 changed files with 1 additions and 95 deletions

View File

@ -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;*/
}

View File

@ -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) {