feat: allow specify alt for link's image (#1198)

This commit is contained in:
Jimmy
2025-11-01 22:14:52 +01:00
committed by GitHub
parent e8fc315ead
commit 2612ca87dc
@@ -21,7 +21,7 @@
{{ $permalink = .RelPermalink }} {{ $permalink = .RelPermalink }}
{{ end }} {{ end }}
<div class="article-image"> <div class="article-image">
<img src="{{ $permalink }}" loading="lazy"> <img src="{{ $permalink }}" loading="lazy"{{ with $link.alt }} alt="{{ . }}"{{ end }}>
</div> </div>
{{ end }} {{ end }}
</a> </a>