From 9b4ca4783a186c345d99f613aeaf73e1bc112bfa Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 25 Apr 2024 02:11:24 +0200 Subject: improve HTML formatting --- cmd/build/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/build/template.go') 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") -- cgit 1.4.1