Skip to content

Commit

Permalink
chore: improve seo w/ image alt
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Jun 16, 2021
1 parent 56bcd0d commit 7d255ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/panels/NewsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
:controls="false"
>
<b-carousel-slide v-for="newsitem in filteredNews" :key="`${newsitem.id}-img`">
<b-img slot="img" class="d-block slide-image" fluid center :src="getImgSrc(newsitem.imageLink)" />
<b-img
slot="img"
:alt="newsitem.message"
class="d-block slide-image"
fluid
center
:src="getImgSrc(newsitem.imageLink)"
/>
</b-carousel-slide>
</b-carousel>
</b-list-group-item>
Expand Down

0 comments on commit 7d255ed

Please sign in to comment.