diff --git a/src/components/cards/CategoryCard.astro b/src/components/cards/CategoryCard.astro index 65da302..8a34fde 100644 --- a/src/components/cards/CategoryCard.astro +++ b/src/components/cards/CategoryCard.astro @@ -1,13 +1,18 @@ --- +import Logo from '@components/images/Logo.astro'; +import { getDirectusImageURL } from '@/support/url'; + interface Props { slug: string; title: string; description: string; + logoLight: string; + logoDark?: string; count: number; publishDate: string; } -const { slug, title, description, count, publishDate } = Astro.props; +const { slug, title, description, logoLight, logoDark, count, publishDate } = Astro.props; ---
{description}
diff --git a/src/lib/directusTypes.ts b/src/lib/directusTypes.ts index 0e55020..5eb2287 100644 --- a/src/lib/directusTypes.ts +++ b/src/lib/directusTypes.ts @@ -53,6 +53,8 @@ export type Category = { slug: string; title: string; description: string; + logoLight: string; + logoDark: string; }; export type Application = {