Set navs to toc class

master v0.11
bel 2020-09-28 14:15:39 -06:00
parent 2dd49e169a
commit c130c3af69
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ func withMD(dir string, enabled bool, mdCss, mdClass string, foo http.HandlerFun
}
fmt.Fprintln(w, mdCss)
fmt.Fprintf(w, "<div class=%q>", mdClass)
s = strings.ReplaceAll(s, "<nav>", `<nav class="toc">`)
fmt.Fprintln(w, s)
fmt.Fprintf(w, "</div>")
} else {