import { categoryOf } from "@/lib/blog/feeds";
import { categoryPath, postPath } from "@/lib/blog/routes";
import type { PostSummary } from "@/lib/blog/schema";
import Link from "next/link";
export const formatDate = (iso: string) =>
new Date(iso).toLocaleDateString("en-US", {
year: "numeric",
month: "long",
day: "numeric",
timeZone: "UTC",
});
export function JsonLd({ data }: { data: object }) {
return (
);
}
export function Breadcrumb({
items,
}: {
items: { name: string; href?: string }[];
}) {
return (
);
}
export function PageIntro({
title,
children,
}: {
title: string;
children?: React.ReactNode;
}) {
return (
{title}
{children && (
{p.description}
{showUpdated && p.updatedAt && ( Updated {formatDate(p.updatedAt)} )} Published {formatDate(p.publishedAt)} {showCategory && category && ( {category.name} )} {showTags && p.tags.map((t) => ( {t} ))}