aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/shortcodes/link.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-01-12 12:57:42 -0500
committertdro <tdro@noreply.example.com>2023-01-12 12:57:42 -0500
commit3adbe20402da7a59f13031c6094bb165d835a2b0 (patch)
treef89228f717f1a46160bc305ab4592c8ebaaf4843 /themes/default/layouts/shortcodes/link.html
parentb2a8b775e04bf21ec110638efe70f57323cd3dd5 (diff)
downloadcanory-3adbe20402da7a59f13031c6094bb165d835a2b0.tar.gz
canory-3adbe20402da7a59f13031c6094bb165d835a2b0.tar.bz2
canory-3adbe20402da7a59f13031c6094bb165d835a2b0.zip
themes/default/layouts/shortcodes/link: Add image metadata
Diffstat (limited to 'themes/default/layouts/shortcodes/link.html')
-rw-r--r--themes/default/layouts/shortcodes/link.html9
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>