feat: Specify image dimensions

https://gtmetrix.com/specify-image-dimensions.html
This commit is contained in:
2020-03-11 14:28:56 +01:00
parent ef6bab5f0d
commit 0d2de1d71f
5 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
{{ if $src }}
{{ $image := $src.Fill "432x300 Center" }}
{{ $alt := index .Params "image_title" | default (index .Params "title") }}
<img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" />
<img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" width="432" height="300" />
{{ end }}
</div>
<div class="card-body cell -7of12">