diff --git a/src/app/post/components/post-card/post-card.component.html b/src/app/post/components/post-card/post-card.component.html index aeb808ddfe9ba665c71987bb14b2d0f4222cf056..85341967a8250ebe15d87fdb58456136c5fcf002 100644 --- a/src/app/post/components/post-card/post-card.component.html +++ b/src/app/post/components/post-card/post-card.component.html @@ -7,7 +7,7 @@ (keyup.enter)="showDetails(post)" > <div class="imageContainer"> - <img *ngIf="post.feature_image" alt="Image du post" [src]="post.feature_image" /> + <img *ngIf="post.feature_image" alt="{{ post.feature_image_alt }}" [src]="post.feature_image" /> <img *ngIf="!post.feature_image" alt="" diff --git a/src/app/post/models/post.model.ts b/src/app/post/models/post.model.ts index 4adf291c1ad5e0c878300b710003f979399d12be..9ba0fe3e61adef05b42b2f2b1b71af1f6237d441 100644 --- a/src/app/post/models/post.model.ts +++ b/src/app/post/models/post.model.ts @@ -9,6 +9,7 @@ export class Post { title: string; excerpt: string; feature_image: string; + feature_image_alt: string; html: string; author: string; tags: Tag[];