🐛 fix content loading for comic nav

This commit is contained in:
mi
2025-11-14 15:07:04 +10:00
parent e3d4315f7f
commit 0fb120c54f
2 changed files with 10 additions and 6 deletions

4
app.py
View File

@@ -131,7 +131,9 @@ def comic(comic_id):
comic = get_comic_by_number(comic_id)
if not comic:
abort(404)
return render_template('comic.html', title=f"Comic #{comic_id}",
# Use comic title if present, otherwise use #X format (matching client-side behavior)
page_title = comic.get('title', f"#{comic_id}")
return render_template('comic.html', title=page_title,
comic=comic, total_comics=len(COMICS))