diff --git a/kjvstudy_org/routes/utility.py b/kjvstudy_org/routes/utility.py index 847debb..95a11cd 100644 --- a/kjvstudy_org/routes/utility.py +++ b/kjvstudy_org/routes/utility.py @@ -10,7 +10,7 @@ from fastapi.responses import Response, FileResponse from ..kjv import bible from ..topics import get_all_topics from ..strongs import get_all_strongs -from ..stories import get_all_stories +from ..stories import load_all_stories router = APIRouter(tags=["Utility"]) @@ -282,7 +282,7 @@ def sitemap_main(): """ # Add all individual story URLs - stories_data = get_all_stories() + stories_data = load_all_stories() for category in stories_data: for story in category.get("stories", []): slug = story.get("slug", "") diff --git a/kjvstudy_org/templates/offline.html b/kjvstudy_org/templates/offline.html index 525bf20..4fd2b2e 100644 --- a/kjvstudy_org/templates/offline.html +++ b/kjvstudy_org/templates/offline.html @@ -230,6 +230,49 @@ color: var(--success-color); font-weight: 600; } + .quick-links { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); + gap: 1rem; + margin: 1.5rem 0; + } + .quick-link { + display: flex; + align-items: center; + gap: 0.5rem; + padding: 1rem; + background: var(--bg-color); + border: 1px solid var(--border-color); + border-radius: 8px; + text-decoration: none; + color: var(--text-color); + font-weight: 500; + transition: all 0.2s; + } + .quick-link:hover { + border-color: var(--success-color); + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0,0,0,0.1); + } + .debug-details { + margin-top: 3rem; + padding-top: 2rem; + border-top: 1px solid var(--border-color); + } + .debug-details summary { + cursor: pointer; + color: var(--text-secondary); + font-size: 0.9rem; + padding: 0.5rem 0; + } + .debug-details summary:hover { + color: var(--text-color); + } + .debug-details h3 { + margin-top: 1.5rem; + font-size: 1rem; + color: var(--text-secondary); + } @@ -248,28 +291,19 @@ -

Service Worker Status

-
-
-
Service Worker
-
Checking...
-
Cache Storage
-
Checking...
-
Bible Data (verses-1769.json)
-
Checking...
-
Pages Cached
-
Checking...
-
-
- -

Cached Pages 0

-

These pages are available offline:

-