Fix service image paths: use /{{ service.image }} instead of {{ service.image.url }}
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div class="col-lg-6" data-aos="fade-right">
|
||||
<div class="service-image-wrapper">
|
||||
{% if service.image %}
|
||||
<img src="{{ service.image.url }}" alt="{{ service.name }}" class="img-fluid rounded-4 shadow-lg">
|
||||
<img src="/{{ service.image }}" alt="{{ service.name }}" class="img-fluid rounded-4 shadow-lg">
|
||||
{% else %}
|
||||
<img src="{% static 'assets/img/placeholder-service.jpg' %}" alt="{{ service.name }}" class="img-fluid rounded-4 shadow-lg">
|
||||
{% endif %}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<div class="card-modern h-100">
|
||||
<div class="position-relative overflow-hidden" style="height: 200px;">
|
||||
{% if service.image %}
|
||||
<img src="{{ service.image.url }}" class="w-100 h-100" style="object-fit: cover;" alt="{{ service.name }}">
|
||||
<img src="/{{ service.image }}" class="w-100 h-100" style="object-fit: cover;" alt="{{ service.name }}">
|
||||
{% else %}
|
||||
<div class="w-100 h-100 bg-gradient d-flex align-items-center justify-content-center">
|
||||
<i class="fas fa-cogs text-white" style="font-size: 3rem;"></i>
|
||||
|
||||
Reference in New Issue
Block a user