diff --git a/tools/editnav.sh b/tools/editnav.sh
new file mode 100755
index 0000000..dca5b73
--- /dev/null
+++ b/tools/editnav.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+for file in "$@"; do
+ if ! grep -q ' ' "$file"; then
+ tmp=$(mktemp)
+ # Ensure we handle the success of the pipeline correctly
+ if tr '\n' '\r' < "$file" | sed -E "s#([^<]*front page )#\1\r #" | tr '\r' '\n' > "$tmp"; then
+ # Only move the temporary file if the previous commands were successful
+ mv "$tmp" "$file"
+ else
+ echo "An error occurred processing $file. No changes made."
+ rm "$tmp" # Remove the temporary file if the operation failed
+ fi
+ fi
+done
diff --git a/website/articles/fstest-mapfs-file-does-not-exist.html b/website/articles/fstest-mapfs-file-does-not-exist.html
index cd8b05b..462720c 100644
--- a/website/articles/fstest-mapfs-file-does-not-exist.html
+++ b/website/articles/fstest-mapfs-file-does-not-exist.html
@@ -8,6 +8,7 @@
front page
+
articles
projects
diff --git a/website/articles/index.html b/website/articles/index.html
index 92a5ef7..b87f5c8 100644
--- a/website/articles/index.html
+++ b/website/articles/index.html
@@ -7,6 +7,7 @@
front page
+
articles
projects
diff --git a/website/articles/testing-panics-in-go.html b/website/articles/testing-panics-in-go.html
index b04201b..716e874 100644
--- a/website/articles/testing-panics-in-go.html
+++ b/website/articles/testing-panics-in-go.html
@@ -8,6 +8,7 @@
front page
+
articles
projects
@@ -52,19 +53,19 @@ Here's the setup code
goroutine 34 [running]:
testing.tRunner.func1.2({0x10441d540, 0x1044455e0})
- /opt/homebrew/Cellar/go/1.22.2/libexec/src/testing/testing.go:1631 +0x1c4
+/opt/homebrew/Cellar/go/1.22.2/libexec/src/testing/testing.go:1631 +0x1c4
testing.tRunner.func1()
- /opt/homebrew/Cellar/go/1.22.2/libexec/src/testing/testing.go:1634 +0x33c
+/opt/homebrew/Cellar/go/1.22.2/libexec/src/testing/testing.go:1634 +0x33c
panic({0x10441d540?, 0x1044455e0?})
- /opt/homebrew/Cellar/go/1.22.2/libexec/src/runtime/panic.go:770 +0x124
+/opt/homebrew/Cellar/go/1.22.2/libexec/src/runtime/panic.go:770 +0x124
panicker.Panics(...)
- /Users/gwyn/Source/panicker/panicker_test.go:6
+/Users/gwyn/Source/panicker/panicker_test.go:6
panicker.TestPanics(0x14000124680?)
- /Users/gwyn/Source/panicker/panicker_test.go:17 +0x30
+/Users/gwyn/Source/panicker/panicker_test.go:17 +0x30
testing.tRunner(0x14000124680, 0x104444dc0)
- /opt/homebrew/Cellar/go/1.22.2/libexec/src/testing/testing.go:1689 +0xec
+/opt/homebrew/Cellar/go/1.22.2/libexec/src/testing/testing.go:1689 +0xec
created by testing.(*T).Run in goroutine 1
- /opt/homebrew/Cellar/go/1.22.2/libexec/src/testing/testing.go:1742 +0x318
+/opt/homebrew/Cellar/go/1.22.2/libexec/src/testing/testing.go:1742 +0x318
FAIL panicker 0.082s
FAIL
diff --git a/website/articles/using-andrew-for-your-website.html b/website/articles/using-andrew-for-your-website.html
index b7eadf5..e8812d0 100644
--- a/website/articles/using-andrew-for-your-website.html
+++ b/website/articles/using-andrew-for-your-website.html
@@ -8,6 +8,7 @@
front page
+
articles
projects
diff --git a/website/projects/andrew/andrew-is-a-partial-site-generator.html b/website/projects/andrew/andrew-is-a-partial-site-generator.html
index aa0bf6b..faac971 100644
--- a/website/projects/andrew/andrew-is-a-partial-site-generator.html
+++ b/website/projects/andrew/andrew-is-a-partial-site-generator.html
@@ -8,6 +8,7 @@
front page
+
articles
projects
diff --git a/website/projects/andrew/andrew-is-actually-a-web-server.html b/website/projects/andrew/andrew-is-actually-a-web-server.html
index 778df9e..70cd5e1 100644
--- a/website/projects/andrew/andrew-is-actually-a-web-server.html
+++ b/website/projects/andrew/andrew-is-actually-a-web-server.html
@@ -8,6 +8,7 @@
front page
+
articles
projects
diff --git a/website/projects/andrew/andrew-is-minimalistic.html b/website/projects/andrew/andrew-is-minimalistic.html
index 0d3ab6d..a16e678 100644
--- a/website/projects/andrew/andrew-is-minimalistic.html
+++ b/website/projects/andrew/andrew-is-minimalistic.html
@@ -8,6 +8,7 @@
front page
+
articles
projects
diff --git a/website/projects/index.html b/website/projects/index.html
index 016939b..c37acc3 100644
--- a/website/projects/index.html
+++ b/website/projects/index.html
@@ -6,6 +6,7 @@
front page
+
articles
projects
diff --git a/website/projects/kubernetes/2024-01-28-generate-ssl-cert-for-non-kubernetes-service.html b/website/projects/kubernetes/2024-01-28-generate-ssl-cert-for-non-kubernetes-service.html
index eb3504b..eb78573 100644
--- a/website/projects/kubernetes/2024-01-28-generate-ssl-cert-for-non-kubernetes-service.html
+++ b/website/projects/kubernetes/2024-01-28-generate-ssl-cert-for-non-kubernetes-service.html
@@ -8,6 +8,7 @@
front page
+
articles
projects
diff --git a/website/projects/p4merge-wrapper/2024-01-24.html b/website/projects/p4merge-wrapper/2024-01-24.html
index d7d35d3..bd8a1a1 100644
--- a/website/projects/p4merge-wrapper/2024-01-24.html
+++ b/website/projects/p4merge-wrapper/2024-01-24.html
@@ -8,6 +8,7 @@
front page
+
articles
projects