From 3435819f79d26b31771deb222fa247d7c0efa807 Mon Sep 17 00:00:00 2001 From: itsfinniii <102350242+itsfinniii@users.noreply.github.com> Date: Sat, 28 Mar 2026 20:40:35 +0100 Subject: [PATCH] Add the photo category index --- .../src/components/photos/CategoryIndex.astro | 43 +++++++++++++++++++ astro/src/pages/[...route].astro | 3 +- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 astro/src/components/photos/CategoryIndex.astro diff --git a/astro/src/components/photos/CategoryIndex.astro b/astro/src/components/photos/CategoryIndex.astro new file mode 100644 index 0000000..9d47e15 --- /dev/null +++ b/astro/src/components/photos/CategoryIndex.astro @@ -0,0 +1,43 @@ +--- +import { getAllCategories } from "@/content/photos/categories"; +import { getSettings } from "@/content/settings/settings" +import { getImageUrl } from "@/lib/images"; +import { getCategoryRoute } from "@/lib/routing"; +import { Image } from "astro:assets"; + +const settings = await getSettings(); +const categories = await getAllCategories(settings); +--- + +