all repos — website @ 8623948592fa14958d340b006653fc57861c4fc4

My website

move 404.html back to private directory
Alan Pearce alan@alanpearce.eu
Mon, 24 Jun 2024 21:28:43 +0200
commit

8623948592fa14958d340b006653fc57861c4fc4

parent

33fd68ade81137e69d0f50635075456b02a99fbc

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M internal/builder/builder.gointernal/builder/builder.go
@@ -226,7 +226,7 @@ h, _ = getHTMLStyleHash(publicDir, "index.html") 	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
 	}