Skip to content

Commit

Permalink
Merge pull request apache#24251: [Website] add lazy loading attr to i…
Browse files Browse the repository at this point in the history
…mages
  • Loading branch information
aromanenko-dev authored Nov 22, 2022
2 parents 79b8c15 + be346e6 commit 4d5937b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/www/site/layouts/case-studies/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>Case Studies</h1>
{{ range where $pages "Params.category" "study" }}
<div class="case-study-card">
<div class="case-study-card-img">
<img src="{{.Params.icon}}"></i>
<img src="{{.Params.icon}}" loading="lazy"></i>
</div>
<h3 class="case-study-card-title">{{ .Params.cardTitle }}</h3>
<p class="case-study-card-description">{{ .Params.cardDescription }}</p>
Expand Down Expand Up @@ -57,13 +57,13 @@ <h2 class="case-study-h2">Also used by</h2>
{{ if .Params.hasLink }}
<a class="case-study-used-by-card--responsive case-study-used-by-card case-study-used-by-card--with-link" href="{{ .Params.hasLink }}" target="_blank" rel="noopener noreferrer">
<div class="case-study-used-by-card-img">
<img src="{{.Params.icon}}"></i>
<img src="{{.Params.icon}}" loading="lazy"></i>
</div>
</a>
{{ else }}
<div class="case-study-used-by-card case-study-used-by-card--responsive">
<div class="case-study-used-by-card-img">
<img src="{{.Params.icon}}"></i>
<img src="{{.Params.icon}}" loading="lazy"></i>
</div>
<div class="case-study-used-by-card-description">
{{ .Params.cardDescription | safeHTML }}
Expand Down

0 comments on commit 4d5937b

Please sign in to comment.