We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a8ace commit 2360752Copy full SHA for 2360752
layouts/partials/article/components/links.html
@@ -16,8 +16,12 @@ <h2 class="article-title">
16
</div>
17
18
{{ with $link.image }}
19
+ {{ $permalink := . }}
20
+ {{ with ($.Resources.GetMatch (printf "%s" (. | safeURL))) }}
21
+ {{ $permalink = .RelPermalink }}
22
+ {{ end }}
23
<div class="article-image">
- <img src="{{ . }}" loading="lazy">
24
+ <img src="{{ $permalink }}" loading="lazy">
25
26
{{ end }}
27
</a>
0 commit comments