about summary refs log tree commit diff stats
path: root/internal/builder/builder.go
diff options
context:
space:
mode:
authorAlan Pearce2024-06-26 11:20:15 +0200
committerAlan Pearce2024-06-26 11:20:15 +0200
commitf8bf946b090aa4fb0b8beb4ad09c1f06078f0b5b (patch)
tree4f190e4cf9b2cba36147a6c580bfe8a7295d7bb6 /internal/builder/builder.go
parent56ac09928f9aea7a25577e9da716afcd09d2d6b8 (diff)
downloadwebsite-f8bf946b090aa4fb0b8beb4ad09c1f06078f0b5b.tar.lz
website-f8bf946b090aa4fb0b8beb4ad09c1f06078f0b5b.tar.zst
website-f8bf946b090aa4fb0b8beb4ad09c1f06078f0b5b.zip
make error pages dynamic
Diffstat (limited to 'internal/builder/builder.go')
-rw-r--r--internal/builder/builder.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/builder/builder.go b/internal/builder/builder.go
index 08fa374..d855451 100644
--- a/internal/builder/builder.go
+++ b/internal/builder/builder.go
@@ -235,11 +235,6 @@ func build(outDir string, config config.Config) (*Result, error) {
 	h, _ = getHTMLStyleHash(publicDir, "index.html")
 	r.Hashes = append(r.Hashes, h)
 
-	log.Debug("rendering 404 page")
-	if err := renderToFile(templates.NotFound(config, "/404.html"), privateDir, "404.html"); err != nil {
-		return nil, err
-	}
-
 	log.Debug("rendering sitemap")
 	if err := writerToFile(sitemap, publicDir, "sitemap.xml"); err != nil {
 		return nil, err