From 663c63e13c2bc0653d83b19bb08fffdf9c3932d6 Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Tue, 18 Jun 2024 21:13:01 +0930 Subject: [PATCH] Fixed 404 accessing config variables --- lib/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build.js b/lib/build.js index 1362d78..cb98653 100644 --- a/lib/build.js +++ b/lib/build.js @@ -112,7 +112,7 @@ const build404 = async () => { const template404 = compile(fs.readFileSync(template404Path, 'utf-8')); // Write our 404 html file - const html404 = render(template404, {}); + const html404 = render(template404, { config: process.config }); const compiled404Html = render(layout, { body: html404, meta, config: process.config }); // Write our 404 html file