--- import type { Settings, Post } from "@matthiesenxyz/astro-ghostcms/api"; import FeatureImage from "./FeatureImage.astro"; import AuthorList from "./AuthorList.astro"; import { formatDate } from "../utils"; import { Markup } from 'astro-remote'; import config from "virtual:@matthiesenxyz/astro-ghostcms/config"; const useRemote = config.ThemeProvider.astroRemote.enable; 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
{useRemote ? (latestFeatured && ) : (latestFeatured && ) }
)}