feat: add astro-check

This commit is contained in:
Alexander Daichendt 2024-12-12 09:51:12 +01:00
parent 6c7c305fe1
commit 4dd699f08c
4 changed files with 581 additions and 3 deletions

View file

@ -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;