mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-01 19:22:38 +00:00
theme: Misc adjustments for the themes site
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user