aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/hero.html4
1 files changed, 3 insertions, 1 deletions
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 }};"
>
<div class="max-w-screen-md mx-auto px-2 text-white font-serif">