feat: add astro-check
This commit is contained in:
parent
6c7c305fe1
commit
4dd699f08c
4 changed files with 581 additions and 3 deletions
|
|
@ -4,7 +4,9 @@ import FormattedDate from "../components/FormattedDate.astro";
|
|||
import BaseLayout from "./BaseLayout.astro";
|
||||
import { Picture } from "astro:assets";
|
||||
|
||||
type Props = CollectionEntry<"blog">["data"];
|
||||
type Props = CollectionEntry<"blog">["data"] & {
|
||||
readingTime: number;
|
||||
};
|
||||
|
||||
const { title, description, pubDate, updatedDate, heroImage, readingTime } =
|
||||
Astro.props;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import Ul from "../../components/Ul.astro";
|
|||
import Ol from "../../components/Ol.astro";
|
||||
import Li from "../../components/Li.astro";
|
||||
import Link from "../../components/Link.astro";
|
||||
import { getEntry } from "astro:content";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const posts = await getCollection("blog");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue