🐛 fix content loading for comic nav
This commit is contained in:
4
app.py
4
app.py
@@ -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))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user