We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc52cdb commit f1a9346Copy full SHA for f1a9346
site/layouts/blog/li.html
@@ -5,7 +5,13 @@
5
{{ with .Resources.GetMatch .Params.cover }}
6
{{ with .Fill "336x200 Center webp q100" }}
7
<div class="img-container">
8
+ {{ if $.Truncated }}
9
+ <a href="{{ $.Permalink }}" aria-hidden="true" tabindex="-1">
10
+ <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="" loading="lazy">
11
+ </a>
12
+ {{ else }}
13
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="" loading="lazy">
14
+ {{ end }}
15
</div>
16
{{ end }}
17
0 commit comments