Skip to content

Commit a95eca5

Browse files
committed
theme: Misc adjustments for the themes site
1 parent 8e6c260 commit a95eca5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

layouts/_partials/helpers/picture.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
{{ $image1x := $image.Resize (printf "%dx" $width1x) }}
66
{{ $image1xWebp := $image.Resize (printf "%dx webp" $width1x) }}
77
{{ $class := .class | default "h-64 tablet:h-96 lg:h-full w-full object-cover lg:absolute" }}
8+
{{ $loading := .loading | default "eager" }}
89
<picture>
910
<source
1011
srcset="{{ $imageWebp.RelPermalink }}"
@@ -20,6 +21,7 @@
2021
class="{{ $class }}"
2122
src="{{ $image1x.RelPermalink }}"
2223
alt=""
24+
loading="{{ $loading }}"
2325
width="{{ $image1x.Width }}"
2426
height="{{ $image1x.Height }}">
2527
</picture>

layouts/baseof.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
{{ block "header" . }}
4545
{{ partial "layouts/header/header.html" . }}
4646
{{ end }}
47+
{{ block "subheader" . }}
48+
{{ end }}
4749
{{ block "hero" . }}
4850
{{ end }}
4951
<div class="flex w-full xl:w-6xl h-full flex-auto mx-auto">

0 commit comments

Comments
 (0)