Compare commits

..

2 Commits

Author SHA1 Message Date
mi
f93850d772 🍱 example thumb 2025-11-07 17:18:25 +10:00
mi
7047f4f16c default thumb 2025-11-07 17:18:17 +10:00
3 changed files with 7 additions and 0 deletions

Binary file not shown.

BIN
static/images/thumbs/default.jpg LFS Normal file

Binary file not shown.

View File

@@ -12,6 +12,7 @@
<div class="archive-item"> <div class="archive-item">
<a href="{{ url_for('comic', comic_id=comic.number) }}"> <a href="{{ url_for('comic', comic_id=comic.number) }}">
<img src="{{ url_for('static', filename='images/thumbs/' + comic.filename) }}" <img src="{{ url_for('static', filename='images/thumbs/' + comic.filename) }}"
onerror="this.onerror=null; this.src='{{ url_for('static', filename='images/thumbs/default.jpg') }}';"
alt="{{ comic.title if comic.title else '#' ~ comic.number }}"> alt="{{ comic.title if comic.title else '#' ~ comic.number }}">
<div class="archive-info"> <div class="archive-info">
<h3>#{{ comic.number }}{% if comic.title %}: {{ comic.title }}{% endif %}</h3> <h3>#{{ comic.number }}{% if comic.title %}: {{ comic.title }}{% endif %}</h3>