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

@ -1,9 +1,10 @@
{{ define "main" }}
<div class="container small">
{{ $path := .Params.image }}
{{ $credit := .Params.image_credit }}
{{ with .Resources.GetMatch $path }}
{{ $img := .Fill "680x382 center" }}
<img class="actu-image" src="{{ $img.RelPermalink }}" />
<img class="actu-image" src="{{ $img.RelPermalink }}"{{ with $credit }} alt="{{ . }}" title="{{ . }}"{{ end}} />
{{ end }}
{{ .Content }}
<hr>

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>