diff options
author | Alan Pearce | 2024-06-26 11:20:15 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-26 11:20:15 +0200 |
commit | f8bf946b090aa4fb0b8beb4ad09c1f06078f0b5b (patch) | |
tree | 4f190e4cf9b2cba36147a6c580bfe8a7295d7bb6 /internal/builder | |
parent | 56ac09928f9aea7a25577e9da716afcd09d2d6b8 (diff) | |
download | website-f8bf946b090aa4fb0b8beb4ad09c1f06078f0b5b.tar.lz website-f8bf946b090aa4fb0b8beb4ad09c1f06078f0b5b.tar.zst website-f8bf946b090aa4fb0b8beb4ad09c1f06078f0b5b.zip |
make error pages dynamic
Diffstat (limited to 'internal/builder')
-rw-r--r-- | internal/builder/builder.go | 5 |
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 |