Fix build error
All checks were successful
Build and deploy website / build (push) Successful in 1m23s
Build and deploy website / deploy (push) Successful in 1s

Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
Martin Berg Alstad 2024-10-06 14:53:54 +02:00
parent 8ba480eab1
commit c3b698956b
Signed by: martials
GPG Key ID: DF629A90917D1319

View File

@ -2,9 +2,11 @@
import Layout from "@/layouts/Layout.astro" import Layout from "@/layouts/Layout.astro"
import HardwarePage from "@/components/HardwarePage.svelte" import HardwarePage from "@/components/HardwarePage.svelte"
import "@/styles/global.css" import "@/styles/global.css"
import { getCollection } from "astro:content"
const hardware = await getCollection("hardware")
--- ---
<Layout title="Hardware" class="mx-auto max-w-[750px]"> <Layout title="Hardware" class="mx-auto max-w-[750px]">
<h1 class="text-center">Hardware</h1> <HardwarePage client:load hardware={hardware} />
<HardwarePage client:load /> </Layout>
</Layout>