--- import type { Settings, Post } from "@matthiesenxyz/astro-ghostcms/api"; import FeatureImage from "./FeatureImage.astro"; import AuthorList from "./AuthorList.astro"; import { formatDate } from "utils"; export type Props = { posts: Post[]; settings: Settings; }; const { posts, settings } = Astro.props as Props; const latestFeatured = posts[0] --- {latestFeatured && (
{latestFeatured.feature_image && ( )}
{latestFeatured.primary_tag && (
{latestFeatured.primary_tag.name}
)}

{latestFeatured && latestFeatured.title}

{ latestFeatured.primary_author && (

{latestFeatured.primary_author.name}

)}
{latestFeatured.reading_time} min read
{latestFeatured && }
)}