about summary refs log tree commit diff stats
path: root/cmd/build/template.go
diff options
context:
space:
mode:
authorAlan Pearce2024-04-25 02:11:24 +0200
committerAlan Pearce2024-04-25 02:12:37 +0200
commit9b4ca4783a186c345d99f613aeaf73e1bc112bfa (patch)
treec02d96f55f24a414418a574011b99c094e83fbc0 /cmd/build/template.go
parentf87882e8d138d570c73c85a08821c64882ca658d (diff)
downloadwebsite-9b4ca4783a186c345d99f613aeaf73e1bc112bfa.tar.lz
website-9b4ca4783a186c345d99f613aeaf73e1bc112bfa.tar.zst
website-9b4ca4783a186c345d99f613aeaf73e1bc112bfa.zip
improve HTML formatting
Diffstat (limited to 'cmd/build/template.go')
-rw-r--r--cmd/build/template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/build/template.go b/cmd/build/template.go
index 4f7552c..84cf57c 100644
--- a/cmd/build/template.go
+++ b/cmd/build/template.go
@@ -125,7 +125,7 @@ func layout(filename string, config config.Config, pageTitle string, pageURL str
 	doc.Find("head > link[rel=canonical]").SetAttr("href", pageURL)
 	doc.Find(".title").SetText(config.Title)
 	doc.Find("title").Add(".p-name").SetText(pageTitle)
-	doc.Find("head > style").SetHtml("\n" + string(css))
+	doc.Find("head > style").SetHtml(css)
 	doc.Find("body").setImgURL(pageURL, pageTitle)
 	nav := doc.Find("nav")
 	navLink := doc.Find("nav a")