aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2025-01-17 02:46:46 +0100
committerOscar Najera <hi@oscarnajera.com>2025-01-17 03:06:06 +0100
commit94936b8c4e03a64cd89f0ccdfb79a97fb44ebb30 (patch)
tree1485bc459e15df97a6585e301cf0930b83dd4ea2 /layouts/partials
parent74bb8aaf6f0bddc866d0341d347f0d92ddf94a2b (diff)
downloadhugo-minimalist-theme-94936b8c4e03a64cd89f0ccdfb79a97fb44ebb30.tar.gz
hugo-minimalist-theme-94936b8c4e03a64cd89f0ccdfb79a97fb44ebb30.tar.bz2
hugo-minimalist-theme-94936b8c4e03a64cd89f0ccdfb79a97fb44ebb30.zip
hero back to webp
Diffstat (limited to 'layouts/partials')
-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">