mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 19:32:32 +08:00
refactor: use astro generated CollectionEntry type
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { slugifyStr } from "@utils/slugify";
|
||||
import Datetime from "./Datetime";
|
||||
import type { BlogFrontmatter } from "@content/_schemas";
|
||||
import type { CollectionEntry } from "astro:content";
|
||||
|
||||
export interface Props {
|
||||
href?: string;
|
||||
frontmatter: BlogFrontmatter;
|
||||
frontmatter: CollectionEntry<"blog">["data"];
|
||||
secHeading?: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user