From d337c0602decaba5eb109018e50bdfdb1c4502a2 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 23 Nov 2025 23:02:20 -0500 Subject: [PATCH] Heavily improve 404 page with Tufte design MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Complete redesign of error page with elegant typography and functionality: Design: - Tufte-style layout with proper margins and hierarchy - Old-style numeral "404" display - Removed emojis and inline styles - Clean semantic HTML structure Content: - Biblical theme using parable of lost sheep (Luke 15:4) - Sidenote with theological commentary - Poetic, literary tone matching site aesthetic Functionality: - Search box with smart verse reference detection - URL parsing that suggests corrections for malformed book URLs - Grid of helpful links to all major site sections - Autofocus on search for immediate use This transforms a basic error page into a helpful, beautiful experience. ๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- kjvstudy_org/templates/error.html | 464 +++++++++++++++++++++++++----- 1 file changed, 389 insertions(+), 75 deletions(-) diff --git a/kjvstudy_org/templates/error.html b/kjvstudy_org/templates/error.html index 548150b..358a161 100644 --- a/kjvstudy_org/templates/error.html +++ b/kjvstudy_org/templates/error.html @@ -1,91 +1,405 @@ {% extends "base.html" %} -{% block title %}Page Not Found - Authorized King James Version (KJV) Bible Study{% endblock %} -{% block description %}The requested KJV Bible page could not be found. Browse the complete Authorized King James Version Bible with study tools and commentary.{% endblock %} -{% block keywords %}KJV Bible, Authorized King James Version, Bible study, page not found, KJV online{% endblock %} +{% block title %} + {% if status_code == 404 %} + Page Not Found - KJV Study + {% else %} + Error {{ status_code }} - KJV Study + {% endif %} +{% endblock %} + +{% block description %}The requested page could not be found. Use our search to find Bible passages, topics, study guides, and more.{% endblock %} + +{% block head %} + +{% endblock %} {% block content %} -
-
- {% if status_code == 404 %} - ๐Ÿ“–โ“ - {% else %} - โš ๏ธ - {% endif %} -
- -

- {% if status_code == 404 %} - KJV Bible Page Not Found - {% else %} - Error {{ status_code }} - KJV Study - {% endif %} -

- -

- {% if status_code == 404 %} - The Authorized King James Version (KJV) Bible passage or page you're looking for could not be found. - The reference might be incorrect or the page may have been moved. - {% else %} - {{ detail or "An unexpected error occurred while accessing the KJV Bible study platform." }} - {% endif %} -

- -
- - ๐Ÿ“š Browse KJV Bible Books - - -
-
+
+ {% if status_code == 404 %} +
+

404

+

The Page You Seek Cannot Be Found

+
- +
+ What man of you, having an hundred sheep, if he lose one of them, doth not leave the ninety and nine in the wilderness, and go after that which is lost, until he find it? + + Luke 15:4 + +
-
-

- "Trust in the LORD with all thine heart; and lean not unto thine own understanding." -
- Proverbs 3:5 -

-
+
+

The path you requested leads nowhere in our archives. + + In Scripture, being lost and found carries profound theological significance. The parables of Luke 15โ€”the lost sheep, the lost coin, the lost sonโ€”all illustrate God's relentless pursuit of the lost and the joy of heaven when one is found. The reference may be incorrect, the page may have been moved, or perhaps you followed an outdated link. Fear notโ€”all who seek shall find.

+
+ +
+ +
+

Search the Scriptures

+
+ +
+
+ Try: John 3:16, faith, Psalm 23, or salvation +
+
+ + + +
+

โ† Return to previous page or go to homepage

+
+ + {% else %} + {# Other error codes #} +
+

{{ status_code }}

+

An Error Has Occurred

+
+ +
+

{{ detail or "An unexpected error occurred. Please try again or return to the homepage." }}

+
+ +
+

โ† Return to previous page or go to homepage

+
+ {% endif %} +
{% endblock %} {% block scripts %} -{% endblock %} \ No newline at end of file +{% endblock %}