--- import "../styles/post.scss" import { Temporal } from "temporal-polyfill" type PostType = "Ramblings" | "Writings" type Frontmatter = { title: string description: string type: PostType published_date: string updated_date: string } const frontmatter = Astro.props.frontmatter as Frontmatter --- {frontmatter.title} · a log by angelcube
{frontmatter.type}

{frontmatter.title}

{frontmatter.description}

Written {Temporal.PlainDate.from(frontmatter.published_date).toLocaleString("en-CA", { year: "numeric", month: "long", day: "numeric" })}
Updated {Temporal.PlainDate.from(frontmatter.updated_date).toLocaleString("en-CA", { year: "numeric", month: "long", day: "numeric" })}