fix: image and video optimizations
This commit is contained in:
+2
-2
@@ -8,9 +8,9 @@
|
||||
<!-- ── HERO ──────────────────────────────────────────────────── -->
|
||||
{{- with $hero -}}
|
||||
<section class="relative min-h-screen flex items-end overflow-hidden noise">
|
||||
<!-- Background media — bundle banner.png first, fallback to front matter -->
|
||||
<!-- Background media — bundle banner.png → 01.png → front matter -->
|
||||
{{- $heroBanner := .Resources.GetMatch "banner.png" -}}
|
||||
{{- if not $heroBanner -}}{{- $heroBanner = .Resources.GetMatch "banner.*" -}}{{- end -}}
|
||||
{{- if not $heroBanner -}}{{- $heroBanner = .Resources.GetMatch "01.png" -}}{{- end -}}
|
||||
{{- if $heroBanner -}}
|
||||
<div class="absolute inset-0">
|
||||
{{- partial "img.html" (dict "res" $heroBanner "widths" (slice 1200 1920 2560) "sizes" "100vw" "class" "w-full h-full object-cover" "alt" "" "loading" "eager") -}}
|
||||
|
||||
Reference in New Issue
Block a user