Update CSS, remove stuff from root page
This commit is contained in:
parent
2372455e22
commit
f831b8bb13
7
main.css
7
main.css
|
@ -21,8 +21,8 @@ article {
|
|||
padding-bottom: 4em;
|
||||
}
|
||||
|
||||
nav, footer {
|
||||
background-color: rgb(32, 164, 32);
|
||||
nav {
|
||||
background-color: rgb(32, 32, 32);
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
color: rgb(180, 220, 180);
|
||||
|
@ -38,6 +38,9 @@ footer {
|
|||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: rgb(220, 220, 250);
|
||||
}
|
||||
|
||||
|
|
4
main.go
4
main.go
|
@ -23,7 +23,7 @@ import (
|
|||
//blackfriday "gopkg.in/russross/blackfriday.v2"
|
||||
)
|
||||
|
||||
const DEBUG = false
|
||||
const DEBUG = true
|
||||
|
||||
const DOMAIN_NAME = "threefortiethofonehamster.com"
|
||||
|
||||
|
@ -95,7 +95,7 @@ func serveMarkdown(w http.ResponseWriter, r *http.Request, paths ...string) {
|
|||
func rootHandler(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method == "GET" {
|
||||
if r.URL.Path == "/" {
|
||||
serveMarkdown(w, r, "static/intro.md", "static/builds.md")
|
||||
serveMarkdown(w, r, "static/intro.md")
|
||||
} else if strings.HasSuffix(r.URL.Path, ".md") {
|
||||
if strings.Contains(r.URL.Path, "..") {
|
||||
w.WriteHeader(403)
|
||||
|
|
2
static
2
static
|
@ -1 +1 @@
|
|||
Subproject commit ded137546cc8b0ed3f27fd3f01b8a04172e6425c
|
||||
Subproject commit cf3dd0daac08bb88601e5cd13b1e45a477a700c3
|
Loading…
Reference in New Issue