From 4771b797c6e0f5867b755cb1b40d071e1969758a Mon Sep 17 00:00:00 2001 From: Ivan Reese Date: Sat, 14 Sep 2024 11:23:27 -0600 Subject: [PATCH] =?UTF-8?q?=E2=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/build.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/build.coffee b/build/build.coffee index e51aeaf..2dde435 100644 --- a/build/build.coffee +++ b/build/build.coffee @@ -290,7 +290,10 @@ for pageFilename in readDir "pages" # This is the full destination path where we'll save our page. # To make the URLs pretty, each page becomes an "index.html" file in its own folder. - page.destPath = "public/" + pageName + "/index.html" + if pageName is "404" + page.destPath = "public/404.html" + else + page.destPath = "public/" + pageName + "/index.html" # One exception to the above — the main index of the site does not go in its own folder. page.destPath = page.destPath.replace "/index/index.html", "/index.html"