all repos — website @ c042ee28cf82225c43baf00346f4103a055dc1e7

My website

Add missing doctype
Alan Pearce alan@alanpearce.eu
Thu, 18 Apr 2024 09:51:19 +0200
commit

c042ee28cf82225c43baf00346f4103a055dc1e7

parent

ae3288aa81d015e28fcffbb91d3cdabf96a2eadd

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M cmd/build/build.gocmd/build/build.go
@@ -155,6 +155,7 @@ 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()
 	}()