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 | |
parent | b2a8b775e04bf21ec110638efe70f57323cd3dd5 (diff) | |
download | canory-3adbe20402da7a59f13031c6094bb165d835a2b0.tar.gz canory-3adbe20402da7a59f13031c6094bb165d835a2b0.tar.bz2 canory-3adbe20402da7a59f13031c6094bb165d835a2b0.zip |
themes/default/layouts/shortcodes/link: Add image metadata
-rw-r--r-- | assets/css/default.css | 3 | ||||
-rw-r--r-- | themes/default/layouts/shortcodes/link.html | 9 |
2 files changed, 9 insertions, 3 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index ad35758..4ad2f87 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -1882,7 +1882,6 @@ link-card { link-card a img { min-width: 5rem; max-width: 5rem; - padding: 1rem; border: none; } @@ -1892,7 +1891,7 @@ link-card > a { border-color: var(--border-darker); display: flex; align-items: center; - padding: 0.5rem; + padding: 1rem; } link-card article { 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> |