few tweaks to help page
This commit is contained in:
parent
3c2088bac9
commit
2b2ae04c56
|
@ -11,10 +11,13 @@
|
||||||
/* Global defaults. */
|
/* Global defaults. */
|
||||||
|
|
||||||
html { max-width: 65em;
|
html { max-width: 65em;
|
||||||
|
background: #305;
|
||||||
--bg: #002;
|
--bg: #002;
|
||||||
--fg: #dde; }
|
--fg: #dde; }
|
||||||
body { background: var(--bg);
|
body { background: var(--bg);
|
||||||
color: var(--fg);
|
color: var(--fg);
|
||||||
|
margin: 2em;
|
||||||
|
padding: 1em;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-family: Helvetica,Arial,sans-serif; }
|
font-family: Helvetica,Arial,sans-serif; }
|
||||||
a { color: var(--fg); }
|
a { color: var(--fg); }
|
||||||
|
|
4
web.go
4
web.go
|
@ -1451,8 +1451,8 @@ func serveasset(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
func servehelp(w http.ResponseWriter, r *http.Request) {
|
func servehelp(w http.ResponseWriter, r *http.Request) {
|
||||||
name := mux.Vars(r)["name"]
|
name := mux.Vars(r)["name"]
|
||||||
w.Header().Set("Cache-Control", "max-age=0")
|
w.Header().Set("Cache-Control", "max-age=600")
|
||||||
http.ServeFile(w, r, "docs/" + name)
|
http.ServeFile(w, r, "docs/"+name)
|
||||||
}
|
}
|
||||||
func servehtml(w http.ResponseWriter, r *http.Request) {
|
func servehtml(w http.ResponseWriter, r *http.Request) {
|
||||||
templinfo := getInfo(r)
|
templinfo := getInfo(r)
|
||||||
|
|
Loading…
Reference in New Issue