From ae2accd6db11e7266ee650cf340e860298bce3d7 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Sun, 31 Mar 2024 17:55:04 +0200 Subject: [PATCH] fix: add alt to image in articles --- layouts/_default/single.html | 2 +- layouts/actualites/list.html | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b35ed48..6d109c4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -13,7 +13,7 @@ {{ if $featuredImage }} {{ $featuredImage = $featuredImage.Resize "600x" }}
- + {{ with .Params.featured_image.alt }}{{ . }}{{ end }} {{ with .Params.featured_image.caption }}
{{ . }}
{{ end }} diff --git a/layouts/actualites/list.html b/layouts/actualites/list.html index 394f714..eb4e26b 100644 --- a/layouts/actualites/list.html +++ b/layouts/actualites/list.html @@ -19,10 +19,7 @@ {{ end }} {{ $featuredImage := $featuredImage.Fill "465x348 Center" }}
- - {{ with .Params.featured_image.caption }} -
{{ . }}
- {{ end }} + {{ with .Params.featured_image.alt }}{{ . }}{{ end }}