Skip to content

Commit 2612ca8

Browse files
authored
feat: allow specify alt for link's image (#1198)
1 parent e8fc315 commit 2612ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/article/components/links.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2 class="article-title">
2121
{{ $permalink = .RelPermalink }}
2222
{{ end }}
2323
<div class="article-image">
24-
<img src="{{ $permalink }}" loading="lazy">
24+
<img src="{{ $permalink }}" loading="lazy"{{ with $link.alt }} alt="{{ . }}"{{ end }}>
2525
</div>
2626
{{ end }}
2727
</a>

0 commit comments

Comments
 (0)