all repos — honk @ 09528de4efe138715b8d07c81acea8505aa484ea

my fork of honk

few tweaks to help page
Ted Unangst tedu@tedunangst.com
Mon, 07 Oct 2019 01:31:16 -0400
commit

09528de4efe138715b8d07c81acea8505aa484ea

parent

5532561ec68842dca7943855c3fb93addd5c0d86

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M docs/mandoc.cssdocs/mandoc.css

@@ -11,10 +11,13 @@

/* Global defaults. */ html { max-width: 65em; + background: #305; --bg: #002; --fg: #dde; } body { background: var(--bg); color: var(--fg); + margin: 2em; + padding: 1em; font-size: 18px; font-family: Helvetica,Arial,sans-serif; } a { color: var(--fg); }
M web.goweb.go

@@ -1451,8 +1451,8 @@ http.ServeFile(w, r, "views"+r.URL.Path)

} func servehelp(w http.ResponseWriter, r *http.Request) { name := mux.Vars(r)["name"] - w.Header().Set("Cache-Control", "max-age=0") - http.ServeFile(w, r, "docs/" + name) + w.Header().Set("Cache-Control", "max-age=600") + http.ServeFile(w, r, "docs/"+name) } func servehtml(w http.ResponseWriter, r *http.Request) { templinfo := getInfo(r)