Skip to content

Commit

Permalink
fix: fix testimonal img alt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed-Basalib10 committed Nov 12, 2023
1 parent d1da2a6 commit 8ae7290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/components/home/testimonials.twig
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@


<div slot="items">
{% for item in items %}
{% for index, item in items %}
<div class="swiper-slide">
<div class="testimonial">
<div class="testimonial__inner">
<div class="testimonial__avatar">
<img src="{{ 'images/s-empty.png' | asset }}" data-src="{{ item.avatar }}"
alt="{{ item.name }}"
alt="{{ item.name|trim ? item.name : 'testimonial-' ~ index }}"
class="lazy w-full h-full object-cover">
</div>
<div class="flex-1 testimonial__text">
Expand Down

0 comments on commit 8ae7290

Please sign in to comment.