From a95eca524a9ec493e8f3f78e182f5df929dee884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 13 Apr 2025 12:11:46 +0200 Subject: [PATCH] theme: Misc adjustments for the themes site --- layouts/_partials/helpers/picture.html | 2 ++ layouts/baseof.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/layouts/_partials/helpers/picture.html b/layouts/_partials/helpers/picture.html index 454dd705e..4dc16c002 100644 --- a/layouts/_partials/helpers/picture.html +++ b/layouts/_partials/helpers/picture.html @@ -5,6 +5,7 @@ {{ $image1x := $image.Resize (printf "%dx" $width1x) }} {{ $image1xWebp := $image.Resize (printf "%dx webp" $width1x) }} {{ $class := .class | default "h-64 tablet:h-96 lg:h-full w-full object-cover lg:absolute" }} +{{ $loading := .loading | default "eager" }} diff --git a/layouts/baseof.html b/layouts/baseof.html index 1f4952146..4c14a6b6d 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -44,6 +44,8 @@ {{ block "header" . }} {{ partial "layouts/header/header.html" . }} {{ end }} + {{ block "subheader" . }} + {{ end }} {{ block "hero" . }} {{ end }}