Skip to content

Commit

Permalink
Further adjustments to 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Aug 1, 2024
1 parent 169c66e commit 771333b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion en/404.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
layout: layouts/page
title: Not Found
permalink: 404.html
---

{% section "textPadding" %}
Expand Down
10 changes: 10 additions & 0 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,16 @@ for (let file of filesCopied) {
}
console.log()

// 5. Other adjustments
console.log("Other adjustments...")
try {
// Manually alias 404 page to 404.html
fs.copyFileSync(`${output}/404/index.html`, `${output}/404.html`)
} catch (error) {
console.error("An error occurred:", error)
}
console.log()

// 6. Delete fonts and images folder in German site
console.log("Delete some static and unnecessary files...")
const foldersToDelete = [
Expand Down

0 comments on commit 771333b

Please sign in to comment.