From ee59b22aad37cf738e5cf01cba6aaa9d1af82e0b Mon Sep 17 00:00:00 2001 From: alarcritty Date: Fri, 12 Sep 2025 15:27:44 +0530 Subject: [PATCH 1/7] Add custom 404 page with Neovim branding - Integrates with existing Jekyll layout system - Matches site color scheme and navigation - Provides helpful links for users - Includes auto-redirect for common typos --- 404.html | 176 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 404.html diff --git a/404.html b/404.html new file mode 100644 index 0000000..8d63fc9 --- /dev/null +++ b/404.html @@ -0,0 +1,176 @@ +--- +layout: default +title: Page Not Found +canonical_url: /404.html +--- + +{% include nav.html %} + +
+
+
+
404
+

Page Not Found

+

The page you're looking for doesn't exist. It might have been moved, deleted, or you entered the wrong URL.

+ + + + +
+
+
+ + + + From 48c357c1c8136935f36876e6aa2b3b06b305e80b Mon Sep 17 00:00:00 2001 From: alarcritty Date: Fri, 12 Sep 2025 22:29:03 +0530 Subject: [PATCH 2/7] refactor: optimize 404 page to use existing CSS utilities --- 404.html | 82 ++++++++++++++++++++------------------------------------ 1 file changed, 29 insertions(+), 53 deletions(-) diff --git a/404.html b/404.html index 8d63fc9..093f65c 100644 --- a/404.html +++ b/404.html @@ -3,24 +3,22 @@ title: Page Not Found canonical_url: /404.html --- - {% include nav.html %} - -
+
404
-

Page Not Found

-

The page you're looking for doesn't exist. It might have been moved, deleted, or you entered the wrong URL.

+

Page Not Found

+

The page you're looking for doesn't exist. It might have been moved, deleted, or you entered the wrong URL.

-
- Go Home - Documentation + - +
@@ -26,7 +28,6 @@

Page Not Found

color: #61ff00; font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace; line-height: 1; - margin-bottom: 1rem; } .masthead h1 { From 6f8e14e4cabc298c3bd42f48b49438bd3ec7713f Mon Sep 17 00:00:00 2001 From: alarcritty Date: Mon, 15 Sep 2025 06:11:32 +0530 Subject: [PATCH 6/7] style: update color .masthead --- 404.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/404.html b/404.html index ca822fd..9b14c8f 100644 --- a/404.html +++ b/404.html @@ -15,7 +15,6 @@

Page Not Found

Go Home Documentation -
@@ -25,9 +24,10 @@

Page Not Found

.masthead .lead { font-size: 8rem; font-weight: 700; - color: #61ff00; + color:#22C55E; font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace; line-height: 1; + margin-bottom: 0.5rem; } .masthead h1 { From 21e7934c44f6de66d9f38e0453302d801d5636d5 Mon Sep 17 00:00:00 2001 From: alarcritty Date: Mon, 15 Sep 2025 14:40:04 +0530 Subject: [PATCH 7/7] feat: add custom 404 page with GitHub Pages permalink support - Add custom 404 page with improved mobile layout - Improve mobile button text alignment and responsive design - Add proper YAML front matter for GitHub Pages compatibility - Update default layout to exclude canonical links and add noindex for 404 page - Add flexbox layout and gap spacing for better button presentation --- 404.html | 19 +++++++++++++------ _layouts/default.html | 4 ++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/404.html b/404.html index 9b14c8f..cd2a413 100644 --- a/404.html +++ b/404.html @@ -2,11 +2,12 @@ layout: default title: Page Not Found canonical_url: /404.html +permalink: /404.html --- {% include nav.html %} -
+
-
+
404

Page Not Found

The page you're looking for doesn't exist. It might have been moved, deleted, or you entered the wrong URL.

@@ -16,15 +17,14 @@

Page Not Found

Documentation
-
-
+ - diff --git a/_layouts/default.html b/_layouts/default.html index 799374d..8e0415f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -23,7 +23,11 @@ + {% unless page.url == "/404.html" %} + {% else %} + + {% endunless %}