mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-14 04:06:21 +09:00
remove search page and added search modal
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
---
|
||||
import Base from "@/layouts/Base.astro";
|
||||
import SearchLayout from "@/layouts/Search";
|
||||
import { getSinglePage } from "@/lib/contentParser.astro";
|
||||
|
||||
const BLOG_FOLDER = "blog";
|
||||
const posts = await getSinglePage(BLOG_FOLDER);
|
||||
|
||||
// List of items to search in
|
||||
const searchList = posts.map((item) => ({
|
||||
slug: item.slug,
|
||||
data: item.data,
|
||||
content: item.body,
|
||||
}));
|
||||
---
|
||||
|
||||
<Base title={`Search`}>
|
||||
<SearchLayout client:load searchList={searchList} />
|
||||
</Base>
|
||||
Reference in New Issue
Block a user