--- import { getGhostImgPath } from "../utils"; import type { Settings, Author } from "@matthiesenxyz/astro-ghostcms/api"; export type Props = { author: Author; wide?: boolean; addClass?: string; settings: Settings; showCover?: boolean; }; const { author, wide = false, settings, showCover = true, } = Astro.props as Props; ---
{author.cover_image && showCover && ( {author.name} )}
{author.profile_image && ( {author.name} )}
{author.bio &&
{author.bio}
}
{author.count && author.count.posts && (
{author.count.posts > 0 ? `${author.count.posts} posts` : "No posts"}
)}