fix: Mise à jour pour SEO

This commit is contained in:
2021-04-27 16:38:54 +02:00
parent 87ef1a10b5
commit 855e98bdbf
23 changed files with 20 additions and 47 deletions

View File

@ -8,8 +8,9 @@
</div>
</a>
{{ $path := .Params.image }}
{{ $credit := .Params.image_credit }}
{{ with .Resources.GetMatch $path }}
{{ $img := .Fill "460x260 center" }}
<div class="image"><img src="{{ $img.RelPermalink }}" /></div>
<div class="image"><img src="{{ $img.RelPermalink }}"{{ with $credit }} alt="{{ $credit }}"{{ end }} /></div>
{{ end }}
</div>