add fuse
This commit is contained in:
10
superpage/src/pages/_components/Search.astro
Normal file
10
superpage/src/pages/_components/Search.astro
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
import Search from "./Search";
|
||||
import { getCollection, render } from "astro:content";
|
||||
const courses = await getCollection(
|
||||
"courses",
|
||||
({ data }) => data.draft != true,
|
||||
);
|
||||
---
|
||||
|
||||
<Search client:load searchlist={courses} />
|
||||
Reference in New Issue
Block a user