From 8f0b8fe5dd4299fc5b46b4dd69ab70659cd45fee Mon Sep 17 00:00:00 2001
From: brooke <brooke@myco.systems>
Date: Mon, 15 Jul 2024 14:58:34 -0400
Subject: [PATCH] lazy loading

---
 themes/gallo/layouts/partials/categories.html | 1 +
 themes/gallo/layouts/partials/gallery.html    | 1 +
 themes/gallo/layouts/partials/nav.html        | 1 +
 3 files changed, 3 insertions(+)

diff --git a/themes/gallo/layouts/partials/categories.html b/themes/gallo/layouts/partials/categories.html
index cf4c2c6..1b552ad 100644
--- a/themes/gallo/layouts/partials/categories.html
+++ b/themes/gallo/layouts/partials/categories.html
@@ -34,6 +34,7 @@
           <img
             class="min-h-full h-auto w-full opacity-90"
             src="{{ .img }}"
+            loading="lazy"
             alt="Category {{ .categoryName }}"
             style="{{ .style | safeCSS }} filter: brightness(60%);"
           />
diff --git a/themes/gallo/layouts/partials/gallery.html b/themes/gallo/layouts/partials/gallery.html
index 3107725..09d1955 100644
--- a/themes/gallo/layouts/partials/gallery.html
+++ b/themes/gallo/layouts/partials/gallery.html
@@ -7,6 +7,7 @@
     <img
       src="{{ .image }}"
       style="object-fit: cover"
+      loading="lazy"
       class="aspect-[1/1] w-full rounded-lg"
     />
     <div class="gap-4 flex flex-col">
diff --git a/themes/gallo/layouts/partials/nav.html b/themes/gallo/layouts/partials/nav.html
index a0b0367..d15338f 100644
--- a/themes/gallo/layouts/partials/nav.html
+++ b/themes/gallo/layouts/partials/nav.html
@@ -4,6 +4,7 @@
       class="w-44 h-[40.2667px]"
       alt="{{ .Site.Params.logoAlt }}"
       src="{{ .Site.Params.logo }}"
+      loading="lazy"
   /></a>
   <nav class="place-self-center h-8 flex justify-end gap-2 text-white pr-6">
     {{ range .Site.Menus.main }}