diff options
author | tdro <tdro@noreply.example.com> | 2023-01-12 12:57:42 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-01-12 12:57:42 -0500 |
commit | 3adbe20402da7a59f13031c6094bb165d835a2b0 (patch) | |
tree | f89228f717f1a46160bc305ab4592c8ebaaf4843 /themes | |
parent | b2a8b775e04bf21ec110638efe70f57323cd3dd5 (diff) | |
download | canory-3adbe20402da7a59f13031c6094bb165d835a2b0.tar.gz canory-3adbe20402da7a59f13031c6094bb165d835a2b0.tar.bz2 canory-3adbe20402da7a59f13031c6094bb165d835a2b0.zip |
themes/default/layouts/shortcodes/link: Add image metadata
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/layouts/shortcodes/link.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/themes/default/layouts/shortcodes/link.html b/themes/default/layouts/shortcodes/link.html index 4b9b7a6..efcdf78 100644 --- a/themes/default/layouts/shortcodes/link.html +++ b/themes/default/layouts/shortcodes/link.html @@ -17,7 +17,14 @@ <link-card> <a href="{{ $source }}"> - <img alt="{{ $host }}" src="{{ $image.Permalink }}" /> + <img + loading="lazy" + alt="{{ $host }}" + title="{{ $host }}" + height="{{ $image.Height }}" + width="{{ $image.Width }}" + src="{{ $image.Permalink }}" + /> </a> <article> <h2>{{ $host }}</h2> |