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;

View file

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