theme: Misc adjustments for the themes site

This commit is contained in:
Bjørn Erik Pedersen
2025-04-13 12:11:46 +02:00
parent 8e6c26067f
commit a95eca524a
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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" }}
<picture>
<source
srcset="{{ $imageWebp.RelPermalink }}"
@@ -20,6 +21,7 @@
class="{{ $class }}"
src="{{ $image1x.RelPermalink }}"
alt=""
loading="{{ $loading }}"
width="{{ $image1x.Width }}"
height="{{ $image1x.Height }}">
</picture>
+2
View File
@@ -44,6 +44,8 @@
{{ block "header" . }}
{{ partial "layouts/header/header.html" . }}
{{ end }}
{{ block "subheader" . }}
{{ end }}
{{ block "hero" . }}
{{ end }}
<div class="flex w-full xl:w-6xl h-full flex-auto mx-auto">