--- import { add, format } from "date-fns"; import CalendarIcon from "@assets/svg/calendar.svg"; interface Props { title: string; date: Date; slug?: string; } const { title, date, slug } = Astro.props; ---
{slug ? {title} :

{title}

}
{format(add(new Date(date), { hours: 6 }), "MMM do, y")}