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:
@@ -10,7 +10,7 @@ import slugify from "@utils/slugify";
|
||||
import type { Frontmatter } from "src/types";
|
||||
import Socials from "@components/Socials.astro";
|
||||
|
||||
const posts = await Astro.glob<Frontmatter>("../contents/*.md");
|
||||
const posts = await Astro.glob<Frontmatter>("../contents/**/*.md");
|
||||
|
||||
const sortedPosts = getSortedPosts(posts);
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user