From 77f6d8ae30c4236cf24377cf49c00e60fde2e5b1 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 21 Nov 2025 19:03:53 -0500 Subject: [PATCH] Add /resources hub page for all theological resources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New Features: - Created /resources route that showcases all theological resources - Organized into categories: People, Theology, History & Culture, Study Tools - Beautiful grid layout with resource cards - Each card shows name, count, and description - Responsive design for mobile/tablet Integration: - Added prominent link on homepage in Resources section - Added to sidebar navigation menu - Provides central hub for discovering all study materials Resources Included: - Biblical Prophets, Twelve Apostles, Women of the Bible - Biblical Angels, Names of God, Parables, Covenants - Festivals, Geography, Timeline, Genealogies - Study Guides 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- kjvstudy_org/server.py | 105 +++++++++++++++++++++++ kjvstudy_org/templates/base.html | 1 + kjvstudy_org/templates/index.html | 4 +- kjvstudy_org/templates/resources.html | 119 ++++++++++++++++++++++++++ 4 files changed, 228 insertions(+), 1 deletion(-) create mode 100644 kjvstudy_org/templates/resources.html diff --git a/kjvstudy_org/server.py b/kjvstudy_org/server.py index 4845b9f..e556aff 100644 --- a/kjvstudy_org/server.py +++ b/kjvstudy_org/server.py @@ -4318,6 +4318,111 @@ def topics_page(request: Request): ) +@app.get("/resources", response_class=HTMLResponse) +def resources_page(request: Request): + """Browse all theological resources""" + books = list(bible.iter_books()) + + # Organize resources into categories + resources = { + "People": [ + { + "name": "Biblical Prophets", + "url": "/biblical-prophets", + "description": "Explore the prophetic ministry throughout Scripture, from Isaiah to Malachi", + "count": "9 prophets" + }, + { + "name": "The Twelve Apostles", + "url": "/the-twelve-apostles", + "description": "The twelve disciples chosen by Jesus to be witnesses of His ministry", + "count": "12 apostles" + }, + { + "name": "Women of the Bible", + "url": "/women-of-the-bible", + "description": "Notable women of Scripture and their significance in redemptive history", + "count": "12 women" + } + ], + "Theology": [ + { + "name": "Biblical Angels", + "url": "/biblical-angels", + "description": "Angelic beings mentioned in Scripture, including Michael, Gabriel, and the heavenly host", + "count": "12 entries" + }, + { + "name": "Names of God", + "url": "/names-of-god", + "description": "The revelation of God's names throughout Scripture and their meanings", + "count": "14 names" + }, + { + "name": "Parables of Jesus", + "url": "/parables", + "description": "The parables spoken by Christ to illustrate spiritual truths", + "count": "11 parables" + }, + { + "name": "Biblical Covenants", + "url": "/biblical-covenants", + "description": "Divine covenants established between God and His people", + "count": "7 covenants" + } + ], + "History & Culture": [ + { + "name": "Biblical Festivals", + "url": "/biblical-festivals", + "description": "The appointed feasts and holy days ordained in the Law of Moses", + "count": "7 festivals" + }, + { + "name": "Biblical Geography", + "url": "/biblical-maps", + "description": "Locations mentioned in Scripture and their historical significance", + "count": "Maps & places" + }, + { + "name": "Biblical Timeline", + "url": "/biblical-timeline", + "description": "Chronological overview of biblical events from Creation to Revelation", + "count": "Timeline" + }, + { + "name": "Genealogies", + "url": "/family-tree", + "description": "Family trees and lineages traced through Scripture", + "count": "Family trees" + } + ], + "Study Tools": [ + { + "name": "Study Guides", + "url": "/study-guides", + "description": "In-depth guides for studying biblical books, themes, and doctrines", + "count": "Multiple guides" + } + ] + } + + breadcrumbs = [ + {"text": "Home", "url": "/"}, + {"text": "Resources", "url": None} + ] + + return templates.TemplateResponse( + "resources.html", + { + "request": request, + "resources": resources, + "books": books, + "breadcrumbs": breadcrumbs + } + ) + + @app.get("/topics/{topic_name}", response_class=HTMLResponse) def topic_detail(request: Request, topic_name: str): """View verses for a specific topic""" diff --git a/kjvstudy_org/templates/base.html b/kjvstudy_org/templates/base.html index ad00c6e..af9ad55 100644 --- a/kjvstudy_org/templates/base.html +++ b/kjvstudy_org/templates/base.html @@ -853,6 +853,7 @@