about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--cmd/build/template.go2
-rw-r--r--go.mod2
-rw-r--r--go.sum2
-rw-r--r--nix/gomod2nix.toml4
4 files changed, 6 insertions, 4 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")
diff --git a/go.mod b/go.mod
index ca31318..d124c22 100644
--- a/go.mod
+++ b/go.mod
@@ -19,7 +19,7 @@ require (
 	golang.org/x/net v0.24.0
 )
 
-replace github.com/a-h/htmlformat => github.com/alanpearce/htmlformat v0.0.0-20240418170242-387207ca8d01
+replace github.com/a-h/htmlformat => github.com/alanpearce/htmlformat v0.0.0-20240425000139-1244374b2562
 
 require (
 	github.com/andybalholm/cascadia v1.3.2 // indirect
diff --git a/go.sum b/go.sum
index 7792d9c..68fbd04 100644
--- a/go.sum
+++ b/go.sum
@@ -7,6 +7,8 @@ github.com/adrg/frontmatter v0.2.0 h1:/DgnNe82o03riBd1S+ZDjd43wAmC6W35q67NHeLkPd
 github.com/adrg/frontmatter v0.2.0/go.mod h1:93rQCj3z3ZlwyxxpQioRKC1wDLto4aXHrbqIsnH9wmE=
 github.com/alanpearce/htmlformat v0.0.0-20240418170242-387207ca8d01 h1:mD01zfZPrqHj7OlyU1O2gJIBRN/kgIyMueres3CHPp8=
 github.com/alanpearce/htmlformat v0.0.0-20240418170242-387207ca8d01/go.mod h1:FMIm5afKmEfarNbIXOaPHFY8X7fo+fRQB6I9MPG2nB0=
+github.com/alanpearce/htmlformat v0.0.0-20240425000139-1244374b2562 h1:7LpBXZnmFk8+RwdFnAYB7rKZhBQrQ4poPLEhpwwbmSc=
+github.com/alanpearce/htmlformat v0.0.0-20240425000139-1244374b2562/go.mod h1:FMIm5afKmEfarNbIXOaPHFY8X7fo+fRQB6I9MPG2nB0=
 github.com/andybalholm/cascadia v1.3.2 h1:3Xi6Dw5lHF15JtdcmAHD3i1+T8plmv7BQ/nsViSLyss=
 github.com/andybalholm/cascadia v1.3.2/go.mod h1:7gtRlve5FxPPgIgX36uWBX58OdBsSS6lUvCFb+h7KvU=
 github.com/antchfx/xmlquery v1.4.0 h1:xg2HkfcRK2TeTbdb0m1jxCYnvsPaGY/oeZWTGqX/0hA=
diff --git a/nix/gomod2nix.toml b/nix/gomod2nix.toml
index 4a09463..1e2501d 100644
--- a/nix/gomod2nix.toml
+++ b/nix/gomod2nix.toml
@@ -8,8 +8,8 @@ schema = 3
     version = "v1.9.1"
     hash = "sha256-HlO8KL0FWs7qZk56wcVAn/y080PfK910HyIVo9y9lvM="
   [mod."github.com/a-h/htmlformat"]
-    version = "v0.0.0-20240418170242-387207ca8d01"
-    hash = "sha256-6EhDObXsE0ObvaHCPXl2pHXhKaEYr/mUZNhLPcUz3L0="
+    version = "v0.0.0-20240425000139-1244374b2562"
+    hash = "sha256-qvnbf/VCR2s2VmyPaQeHLkpA01MNy1g1U0l9B9maBcE="
     replaced = "github.com/alanpearce/htmlformat"
   [mod."github.com/adrg/frontmatter"]
     version = "v0.2.0"