make feature image load without lazy

This commit is contained in:
2026-04-13 10:21:10 -02:30
parent 8021a9c21c
commit 9638a49320
+6 -2
View File
@@ -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">