mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Replace internal type with external Frontmatter type
This commit is contained in:
@@ -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<Frontmatter>[]) =>
|
||||
posts.sort(
|
||||
|
||||
Reference in New Issue
Block a user