Files
kjvstudy.org/kjvstudy_org/templates/error.html
T
kennethreitz 10583fc472 Replace FastAPI CLI with uvicorn and improve SEO metadata
Updates Dockerfile to use uvicorn directly instead of FastAPI CLI.
Enhances HTML templates with comprehensive SEO metadata including
structured data, Open Graph tags, and KJV-specific keywords throughout
all page titles and descriptions.
2025-05-26 13:25:35 -04:00

91 lines
3.8 KiB
HTML

{% 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 content %}
<div class="text-center">
<div style="font-size: 4rem; margin-bottom: 2rem;">
{% if status_code == 404 %}
📖❓
{% else %}
⚠️
{% endif %}
</div>
<h1 class="page-title">
{% if status_code == 404 %}
KJV Bible Page Not Found
{% else %}
Error {{ status_code }} - KJV Study
{% endif %}
</h1>
<p style="font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem;">
{% 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 %}
</p>
<div style="display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;">
<a href="/" class="nav-button nav-button-primary">
📚 Browse KJV Bible Books
</a>
<button onclick="history.back()" class="nav-button">
← Go Back
</button>
</div>
</div>
<div class="text-center mt-4" style="padding: 2rem; background: var(--surface-color); border-radius: var(--radius-lg); margin-top: 3rem; border: 1px solid var(--border-light);">
<h3 style="color: var(--primary-color); margin: 0 0 1rem; font-family: var(--font-display);">
📖 Popular KJV Bible Passages
</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem;">
<a href="/book/Genesis/chapter/1" class="nav-button" style="text-decoration: none;">
Genesis 1 (KJV) - Creation
</a>
<a href="/book/Psalms/chapter/23" class="nav-button" style="text-decoration: none;">
Psalm 23 (KJV) - The Shepherd
</a>
<a href="/book/John/chapter/3" class="nav-button" style="text-decoration: none;">
John 3 (KJV) - Born Again
</a>
<a href="/book/Romans/chapter/8" class="nav-button" style="text-decoration: none;">
Romans 8 (KJV) - No Condemnation
</a>
</div>
</div>
<div class="text-center mt-4" style="padding: 1.5rem; background: var(--background-color); border-radius: var(--radius-lg); margin-top: 2rem;">
<p style="color: var(--text-secondary); margin: 0; font-style: italic;">
"Trust in the LORD with all thine heart; and lean not unto thine own understanding."
<br>
<strong style="color: var(--primary-color);">Proverbs 3:5</strong>
</p>
</div>
{% endblock %}
{% block scripts %}
<script>
// Auto-redirect from common URL patterns
document.addEventListener('DOMContentLoaded', function() {
const path = window.location.pathname;
// Handle common URL patterns that might be 404s
if (path.includes('/chapter/') && path.includes('/verse/')) {
// Extract book and chapter from URL like /book/Genesis/chapter/1/verse/1
const match = path.match(/\/book\/([^\/]+)\/chapter\/(\d+)\/verse\/(\d+)/);
if (match) {
const [, book, chapter, verse] = match;
const newUrl = `/book/${book}/chapter/${chapter}#verse-${verse}`;
window.location.href = newUrl;
}
}
});
</script>
{% endblock %}