Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/trueberryless-org/automatic-starlog-template. Create a Changelog website from GitHub releases
Something went wrong. Try again.
123456789101112131415161718192021222324---import type { HTMLAttributes } from "astro/types";
type Props = HTMLAttributes<"time"> & { date: Date;};
const { date, ...attrs } = Astro.props;---
<time datetime={date.toISOString()} {...attrs}> {date.toLocaleDateString("en-us", { year: "numeric", month: "short", day: "numeric", })}</time>
<style> time { display: block; }</style>