diff --git a/src/utils/getSortedPosts.ts b/src/utils/getSortedPosts.ts index d032202..213ed51 100644 --- a/src/utils/getSortedPosts.ts +++ b/src/utils/getSortedPosts.ts @@ -1,14 +1,5 @@ import type { MarkdownInstance } from "astro"; - -interface Frontmatter { - title: string; - description: string; - author: string; - datetime: string; - slug: string; - featured: boolean; - tags: string[]; -} +import type { Frontmatter } from "./types"; const getSortedPosts = (posts: MarkdownInstance[]) => posts.sort(