make feature image load without lazy
This commit is contained in:
@@ -37,9 +37,13 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ if .Params.image }}
|
{{ if .Params.image }}
|
||||||
<div class="featured-image">
|
<div class="featured-image">
|
||||||
|
<!-- {{ with .Resources.GetMatch .Params.image }}
|
||||||
|
<link rel="preload" as="image" href="{{ .RelPermalink }}">
|
||||||
|
{{ end }} -->
|
||||||
{{ $img := .Resources.GetMatch .Params.image }}
|
{{ $img := .Resources.GetMatch .Params.image }}
|
||||||
<!-- <img src="{{ $img }}" class="card-img-top" alt="{{ .Title }}" fetchpriority="high"> -->
|
<!-- <link rel="preload" as="image" href="{{ .RelPermalink }}"> -->
|
||||||
{{ partial "lazyimg" (dict "img" $img "class" "img-fluid mx-auto d-block" "alt" .Title) }}
|
<img src="{{ $img }}" class="card-img-top" alt="{{ .Title }}" fetchpriority="high">
|
||||||
|
<!-- {{ partial "lazyimg" (dict "img" $img "class" "img-fluid mx-auto d-block" "alt" .Title) }} -->
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<article class="page-content p-2">
|
<article class="page-content p-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user