feat: Mise à jour du site pour une meilleure acceccibilité

This commit is contained in:
2020-03-09 16:11:20 +01:00
parent b00e111d67
commit 08590fe3b6
9 changed files with 16 additions and 8 deletions

View File

@ -8,7 +8,8 @@
{{ $src := $actu.Resources.GetMatch (printf "*%s/%s*" (path.Base .File.Dir) (.Params.Image)) }}
{{ if $src }}
{{ $image := $src.Fill "432x300 Center" }}
<img src="{{ $image.RelPermalink }}" />
{{ $alt := index .Params "image_title" | default (index .Params "title") }}
<img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" />
{{ end }}
</div>
<div class="card-body cell -7of12">