--- import type { CollectionEntry } from "astro:content"; type ReadingYear = CollectionEntry<"reading">; type Entry = ReadingYear["data"]["entries"][number]; interface Props { entry: Entry; } const { entry } = Astro.props; const href = entry.url ?? (entry.isbn ? `https://openlibrary.org/isbn/${entry.isbn}` : undefined); const isReading = entry.status === "reading"; const statusLabel = isReading ? "Currently reading" : "Finished"; ---
{ !isReading && ( ) } { href ? ( {entry.title} ) : ( {entry.title} ) } {entry.author && }
{entry.note &&