commit 943bbefd6c4abe2bab7ff672ca96dd41a6405f23 parent d286c19179e3c573c2f17113c856758a093ec336 Author: Brian C. Lane <bcl@brianlane.com> Date: Tue, 9 Feb 2021 08:07:27 -0800 Include a title Diffstat:
M | cmd/previewmd/main.go | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/cmd/previewmd/main.go b/cmd/previewmd/main.go @@ -57,7 +57,9 @@ func main() { // Render html from markdown output := blackfriday.Run(markdown) + w.Write([]byte(fmt.Sprintf("<html><head><title>%s</title></head><body>\n", filename))) w.Write(output) + w.Write([]byte("</body></html>\n")) } http.HandleFunc("/", preview)