about summary refs log tree commit diff stats
path: root/cmd/build
diff options
context:
space:
mode:
authorAlan Pearce2024-04-18 09:51:19 +0200
committerAlan Pearce2024-04-18 09:51:19 +0200
commitc042ee28cf82225c43baf00346f4103a055dc1e7 (patch)
tree0304c9922ca26c07ebaa4a9cfb022b1d501729d4 /cmd/build
parentae3288aa81d015e28fcffbb91d3cdabf96a2eadd (diff)
downloadwebsite-c042ee28cf82225c43baf00346f4103a055dc1e7.tar.lz
website-c042ee28cf82225c43baf00346f4103a055dc1e7.tar.zst
website-c042ee28cf82225c43baf00346f4103a055dc1e7.zip
Add missing doctype
Diffstat (limited to 'cmd/build')
-rw-r--r--cmd/build/build.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/build/build.go b/cmd/build/build.go
index 914f359..1983e3c 100644
--- a/cmd/build/build.go
+++ b/cmd/build/build.go
@@ -155,6 +155,7 @@ func layout(filename string, config config.Config, pageTitle string) (*goquery.D
 func renderHTML(doc *goquery.Document) io.Reader {
 	r, w := io.Pipe()
 	go func() {
+		w.Write([]byte("<!doctype html>\n"))
 		goquery.Render(w, doc.Children())
 		defer w.Close()
 	}()