diff options
author | Alan Pearce | 2024-04-18 09:51:19 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-18 09:51:19 +0200 |
commit | c042ee28cf82225c43baf00346f4103a055dc1e7 (patch) | |
tree | 0304c9922ca26c07ebaa4a9cfb022b1d501729d4 /cmd/build | |
parent | ae3288aa81d015e28fcffbb91d3cdabf96a2eadd (diff) | |
download | website-c042ee28cf82225c43baf00346f4103a055dc1e7.tar.lz website-c042ee28cf82225c43baf00346f4103a055dc1e7.tar.zst website-c042ee28cf82225c43baf00346f4103a055dc1e7.zip |
Add missing doctype
Diffstat (limited to 'cmd/build')
-rw-r--r-- | cmd/build/build.go | 1 |
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() }() |