lazy loading
All checks were successful
Hugo / build (push) Successful in 9s

This commit is contained in:
brooke 2024-07-15 14:58:34 -04:00
parent 5f427e5d55
commit 8f0b8fe5dd
3 changed files with 3 additions and 0 deletions

View file

@ -34,6 +34,7 @@
<img <img
class="min-h-full h-auto w-full opacity-90" class="min-h-full h-auto w-full opacity-90"
src="{{ .img }}" src="{{ .img }}"
loading="lazy"
alt="Category {{ .categoryName }}" alt="Category {{ .categoryName }}"
style="{{ .style | safeCSS }} filter: brightness(60%);" style="{{ .style | safeCSS }} filter: brightness(60%);"
/> />

View file

@ -7,6 +7,7 @@
<img <img
src="{{ .image }}" src="{{ .image }}"
style="object-fit: cover" style="object-fit: cover"
loading="lazy"
class="aspect-[1/1] w-full rounded-lg" class="aspect-[1/1] w-full rounded-lg"
/> />
<div class="gap-4 flex flex-col"> <div class="gap-4 flex flex-col">

View file

@ -4,6 +4,7 @@
class="w-44 h-[40.2667px]" class="w-44 h-[40.2667px]"
alt="{{ .Site.Params.logoAlt }}" alt="{{ .Site.Params.logoAlt }}"
src="{{ .Site.Params.logo }}" src="{{ .Site.Params.logo }}"
loading="lazy"
/></a> /></a>
<nav class="place-self-center h-8 flex justify-end gap-2 text-white pr-6"> <nav class="place-self-center h-8 flex justify-end gap-2 text-white pr-6">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}