From 94936b8c4e03a64cd89f0ccdfb79a97fb44ebb30 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 17 Jan 2025 02:46:46 +0100 Subject: hero back to webp --- layouts/partials/hero.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html index 3b27d80..55551a0 100644 --- a/layouts/partials/hero.html +++ b/layouts/partials/hero.html @@ -2,7 +2,9 @@ id="hero" class="py-16" style="background: linear-gradient( rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15) ){{ with resources.Get (index .Params.images 0) }} - , url('{{ .RelPermalink }}') center + {{ with .Resize "1200x webp" }} + , url('{{ .RelPermalink }}') center + {{ end }} {{ end }};" >
-- cgit v1.2.3