--- import type { BlogEntry } from "@/types"; import { upperHumanize, plainify, slugify } from "@lib/textConverter"; import { FaRegFolder, FaRegClock, FaHashtag, FaRegCalendarAlt, } from "react-icons/fa"; import readingTime from "@lib/readingTime"; import { formatDate } from "@lib/formatDate"; interface Props { entry: BlogEntry; } const { entry }: Props = Astro.props; const { title, description, autodescription, date, categories, tags, complexity, } = entry.data; const descriptionLength = 200; const entryDate = date ? formatDate(date) : null; const entryReadingTime = readingTime(entry.body!, complexity); const entryDescription = description || (autodescription ? plainify(entry.body!.slice(0, descriptionLength)) : null); ---

{title}

{entryDescription}