feat: Specify image dimensions

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

View File

@ -7,7 +7,7 @@ weight: 3
{{< grid class="-middle" >}}
{{< cell class="-4of12 -center" >}}
<img src="./accueil/apropos.png" alt="Le livre" width="180" />
<img src="./accueil/apropos.png" alt="Le livre" width="180" height="180" />
{{< /cell >}}
{{< cell class="-8of12 " markdown="true" >}}
Après des études de graphisme, je suis embauchée en tant que graphiste chez *Five*, une agence de communication spécialisée dans le domaine de la beauté et lédition. Le 6 novembre 2008, jai dû arrêter mon travail pendant plusieurs mois suite à lhistoire que je mapprête à vous raconter :). Je me suis alors noyée dans lillustration ! Quel bonheur !

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -4,7 +4,7 @@
{{< grid class="-middle" >}}
{{< cell class="-6of12 -center" >}}
<img src="./accueil/bienvenue.png" alt="Le livre" />
<img src="./accueil/bienvenue.png" alt="Le livre" width="480" height="235" />
{{< /cell >}}
{{< cell class="-6of12" markdown="true" >}}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 86 KiB

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">