--- import type { Fragment } from '../../lib/types'; import { excerpt } from '../../lib/variants'; interface Props { fragment: Fragment; cls?: string; showExcerpt?: boolean; } const { fragment: f, cls = '', showExcerpt = false } = Astro.props; const dateStr = new Date(f.createdAt).toISOString().slice(0, 10); ---
{dateStr}

{f.title}

{showExcerpt && f.content && (

{excerpt(f.content, 140)}

)}