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 -10
View File
@@ -6,16 +6,7 @@ import Footer from "@components/Footer.astro";
import LinkButton from "@components/LinkButton.astro";
import getSortedPosts from "src/utils/getSortedPosts";
import Hr from "@components/Hr.astro";
export interface Frontmatter {
title: string;
description: string;
author: string;
datetime: string;
slug: string;
featured: boolean;
tags: string[];
}
import type { Frontmatter } from "src/utils/types";
const posts = await Astro.glob<Frontmatter>("../contents/*.md");