about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-24 21:28:43 +0200
committerAlan Pearce2024-06-24 21:28:43 +0200
commit8623948592fa14958d340b006653fc57861c4fc4 (patch)
treec4a9d3acaad6b7df41188941216aaa2456c1a538
parent33fd68ade81137e69d0f50635075456b02a99fbc (diff)
downloadwebsite-8623948592fa14958d340b006653fc57861c4fc4.tar.lz
website-8623948592fa14958d340b006653fc57861c4fc4.tar.zst
website-8623948592fa14958d340b006653fc57861c4fc4.zip
move 404.html back to private directory
-rw-r--r--internal/builder/builder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/builder/builder.go b/internal/builder/builder.go
index f3e61dc..20714b9 100644
--- a/internal/builder/builder.go
+++ b/internal/builder/builder.go
@@ -226,7 +226,7 @@ func build(outDir string, config config.Config) (*Result, error) {
 	r.Hashes = append(r.Hashes, h)
 
 	log.Debug("rendering 404 page")
-	if err := renderToFile(notFound(config, "/404.html"), publicDir, "404.html"); err != nil {
+	if err := renderToFile(notFound(config, "/404.html"), privateDir, "404.html"); err != nil {
 		return nil, err
 	}