diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 2b5974d0..83ecf482 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -3,7 +3,7 @@ {{ $caption := .Title }} {{ if findRE "^https?" $url.Scheme }}
- {{ $altText }} + {{ $altText }} {{ with $caption }}
{{ . | markdownify }}
{{ end }}
{{ else }} @@ -38,7 +38,7 @@ {{ else }}
- {{ $altText }} + {{ $altText }} {{ with $caption }}
{{ . | markdownify }}
{{ end }}
{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 70e8fe88..06ee2dfd 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -31,6 +31,7 @@ {{ end }} {{ end }} alt="{{ $.Params.featureAlt | default $.Params.coverAlt | default "" }}" + loading="lazy" /> {{ with $.Params.coverCaption }}
{{ . | markdownify }}
diff --git a/layouts/partials/article-link.html b/layouts/partials/article-link.html index 330cc07f..93c24b18 100644 --- a/layouts/partials/article-link.html +++ b/layouts/partials/article-link.html @@ -23,6 +23,7 @@ 160w, {{- (.Fill "320x240 smart").RelPermalink }} 2x" src="{{ (.Fill "160x120 smart").RelPermalink }}" {{ end }} + loading="lazy" /> diff --git a/layouts/partials/author.html b/layouts/partials/author.html index d482d3a6..5aae1f8d 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -10,6 +10,7 @@ height="96" alt="{{ $.Site.Author.name | default "Author" }}" src="{{ $authorImage.RelPermalink }}" + loading="lazy" /> {{ end }} {{ end }} diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index 93ce2462..ca465a23 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -14,6 +14,7 @@ height="144" alt="{{ $.Site.Author.name | default "Author" }}" src="{{ $authorImage.RelPermalink }}" + loading="lazy" /> {{ end }} {{ end }} diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html index ee119168..4c669a57 100644 --- a/layouts/partials/logo.html +++ b/layouts/partials/logo.html @@ -9,6 +9,7 @@ height="{{ div $logo.Height 2 }}" class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}" alt="{{ .Site.Title }}" + loading="lazy" /> {{- if $logo_dark }}