This commit is contained in:
SG
2025-06-12 14:12:46 +03:00
parent 095424f252
commit 47badd9d5a
4 changed files with 17 additions and 13 deletions

View File

@@ -16,7 +16,7 @@
<div class="card h-100 rounded mx-1 my-3" style="width: 400px;">
<div class="card-header">
{% if content_item.image_file %}
<img src="{{ parent_path }}content/{{ content_item.image_file }}" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-scale rounded" style="max-height: 200px; width: auto;">
<img src="{{ parent_path }}static/images/{{ content_item.image_file }}" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-scale rounded" style="max-height: 200px; width: auto;">
{% else %}
<img src="static/images/1x1.png" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-scale rounded" style="height: 200px; width: auto;">
{% endif %}