diff options
Diffstat (limited to 'layouts/_default/_markup/render-image.html')
-rw-r--r-- | layouts/_default/_markup/render-image.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 3d15a11..a36828f 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,11 +1,10 @@ <figure class="figure"> <a href="{{ .Destination | safeURL }}"> <img - class="d-block img-fluid mb-2 rounded border shadow" - max-width="800" + class="d-block img-fluid mb-2 rounded border shadow imgcover" loading="lazy" src="{{ .Destination | safeURL }}" - {{- with .Text }} alt="{{ . }}"{{ end -}} + {{- if .Text}} alt="{{ .Text }}"{{ else }} alt="{{.Title}}"{{ end -}} {{- with .Title }} title="{{ . }}"{{ end -}} > </a> |