fix: image and video optimizations

This commit is contained in:
2026-05-10 18:35:58 +02:00
parent dade82664e
commit 1edb3fc140
20 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -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") -}}