Update Frontmatter type from util

This commit is contained in:
Sat Naing
2022-09-11 14:10:39 +06:30
parent 53936d89f8
commit d5bd7515d3
5 changed files with 5 additions and 14 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import Footer from "@components/Footer.astro";
import Datetime from "@components/Datetime.astro";
import Tag from "@components/Tag.astro";
import type { MarkdownInstance } from "astro";
import type { Frontmatter } from "../index.astro";
import type { Frontmatter } from "src/utils/types";
export interface Props {
post: MarkdownInstance<Frontmatter>;
+1 -1
View File
@@ -4,8 +4,8 @@ import Header from "@components/Header.astro";
import Footer from "@components/Footer.astro";
import Main from "@layouts/Main.astro";
import Card from "@components/Card.astro";
import type { Frontmatter } from "../index.astro";
import getSortedPosts from "src/utils/getSortedPosts";
import type { Frontmatter } from "src/utils/types";
const posts = await Astro.glob<Frontmatter>("../../contents/*.md");