feat(article list): make featured image clickable
This commit is contained in:
parent
415b8a7a0a
commit
9cb3115914
@ -4,9 +4,11 @@
|
|||||||
{{- $thumbnailNotDesktop := $image.Resize "x500 smart" -}}
|
{{- $thumbnailNotDesktop := $image.Resize "x500 smart" -}}
|
||||||
|
|
||||||
<div class="article-image">
|
<div class="article-image">
|
||||||
<img src="{{ $thumbnailNotDesktop.RelPermalink }}"
|
<a href="{{ .Permalink }}">
|
||||||
width="{{ $thumbnailNotDesktop.Width }}" height="{{ $thumbnailNotDesktop.Height }}" loading="lazy"
|
<img src="{{ $thumbnailNotDesktop.RelPermalink }}"
|
||||||
alt="Featured image of post {{ .Title }}" />
|
width="{{ $thumbnailNotDesktop.Width }}" height="{{ $thumbnailNotDesktop.Height }}" loading="lazy"
|
||||||
|
alt="Featured image of post {{ .Title }}" />
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user