Merge branch 'master' into fix-doc-link

This commit is contained in:
Jimmy Cai 2024-03-27 11:06:21 +01:00 committed by GitHub
commit 7375e0b7ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,8 +16,12 @@
</div> </div>
{{ with $link.image }} {{ with $link.image }}
{{ $permalink := . }}
{{ with ($.Resources.GetMatch (printf "%s" (. | safeURL))) }}
{{ $permalink = .RelPermalink }}
{{ end }}
<div class="article-image"> <div class="article-image">
<img src="{{ . }}" loading="lazy"> <img src="{{ $permalink }}" loading="lazy">
</div> </div>
{{ end }} {{ end }}
</a> </a>