Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanreese committed Sep 14, 2024
1 parent 193ce40 commit 4771b79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/build.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4771b79

Please sign in to comment.