mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Change glob
This commit is contained in:
@@ -8,7 +8,7 @@ import Search from "@components/Search";
|
||||
import type { Frontmatter } from "src/types";
|
||||
|
||||
// Retrieve all articles
|
||||
const posts = await Astro.glob<Frontmatter>("../contents/*.md");
|
||||
const posts = await Astro.glob<Frontmatter>("../contents/**/*.md");
|
||||
|
||||
// List of items to search in
|
||||
const searchList = posts
|
||||
|
||||
Reference in New Issue
Block a user