optional title

This commit is contained in:
mi
2025-11-06 21:38:51 +10:00
parent d718b59416
commit c610507b77
4 changed files with 6 additions and 7 deletions

View File

@@ -12,9 +12,9 @@
<div class="archive-item">
<a href="{{ url_for('comic', comic_id=comic.number) }}">
<img src="{{ url_for('static', filename='images/thumbs/' + comic.filename) }}"
alt="{{ comic.title }}">
alt="{{ comic.title if comic.title else '#' ~ comic.number }}">
<div class="archive-info">
<h3>#{{ comic.number }}: {{ comic.title }}</h3>
<h3>#{{ comic.number }}{% if comic.title %}: {{ comic.title }}{% endif %}</h3>
<p class="archive-date">{{ comic.date }}</p>
</div>
</a>