--- import Layout from "@layouts/Layout.astro"; import Prose from "@components/Prose.astro"; import FormattedDate from "@components/FormattedDate.astro"; import { readingTime } from "@lib/utils"; import { Icon } from "astro-icon/components"; import RelatedArticles from "@components/RelatedArticles.astro"; const { article, isPost = false } = Astro.props; const { Content } = await article.render(); let datesMatch = false; if (article.data.date.getTime() == article.data.updated?.getTime()) { datesMatch = true; } const listFormatter = new Intl.ListFormat("en-GB", { style: "long", type: "conjunction", }); ---

{article.data.title}{article.data.description}

{ datesMatch ? (

) : ( <>

) }
{ isPost ? (

{readingTime(article.body)}

) : null } { article.data.extraAuthors ? (

{listFormatter.format(article.data.extraAuthors)}

) : null }