add width and height to pictures
This commit is contained in:
parent
1c5631d82c
commit
9f90f3028e
1 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
{{ $img := imageConfig (add "/static/" (.Destination | safeURL)) }}
|
{{ $img := imageConfig (add "/static/" (.Destination | safeURL)) }}
|
||||||
|
|
||||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" loading="lazy"/>
|
<img
|
||||||
|
src="{{ .Destination | safeURL }}"
|
||||||
|
alt="{{ .Text }}"
|
||||||
|
loading="lazy"
|
||||||
|
width="{{ $img.Width }}"
|
||||||
|
height="{{ $img.Height }}"
|
||||||
|
/>
|
||||||
|
|
Loading…
Reference in a new issue