diff --git a/comics_data.py b/comics_data.py index f9bc84f..47eabba 100644 --- a/comics_data.py +++ b/comics_data.py @@ -12,7 +12,6 @@ COMICS = [ }, { 'number': 2, - 'title': 'Second Comic', 'filename': 'comic-002.png', 'date': '2025-01-08', 'alt_text': 'The second comic', diff --git a/templates/archive.html b/templates/archive.html index d5ee0b6..79c523c 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -12,9 +12,9 @@
{{ comic.title }} + alt="{{ comic.title if comic.title else '#' ~ comic.number }}">
-

#{{ comic.number }}: {{ comic.title }}

+

#{{ comic.number }}{% if comic.title %}: {{ comic.title }}{% endif %}

{{ comic.date }}

diff --git a/templates/comic.html b/templates/comic.html index e8a1843..9bfbb05 100644 --- a/templates/comic.html +++ b/templates/comic.html @@ -3,13 +3,13 @@ {% block content %}
-

{{ comic.title }}

+

{{ comic.title if comic.title else '#' ~ comic.number }}

{{ comic.date }}

{{ comic.title }}
diff --git a/templates/index.html b/templates/index.html index 6465e71..6a602df 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,13 +3,13 @@ {% block content %}
-

{{ comic.title }}

+

{{ comic.title if comic.title else '#' ~ comic.number }}

{{ comic.date }}

{{ comic.title }}