diff --git a/src/components/cards/BlogCard.astro b/src/components/cards/BlogCard.astro index 5d51baf..7514d8a 100644 --- a/src/components/cards/BlogCard.astro +++ b/src/components/cards/BlogCard.astro @@ -1,11 +1,9 @@ --- import { Image } from 'astro:assets'; -import getReadingTime from 'reading-time'; import type { Post } from '@lib/directusTypes'; -import Logo from '@components/images/Logo.astro'; -import { formatShortDate } from '@support/time'; +import PostMetadataSnippet from '@/components/snippets/PostMetadataSnippet.astro'; import { getDirectusImageURL } from '@/support/url'; interface Props { @@ -13,8 +11,6 @@ interface Props { } const { post } = Astro.props; - -const readingTime = getReadingTime(post.content || ''); ---
- {formatShortDate(post.published_date)} -
- - / - - - {readingTime.minutes.toPrecision(1)} minutes - ++
{post.description}
-- {formatShortDate(post.published_date)} -
- - / - - - {readingTime.minutes.toPrecision(1)} minutes - ++
{post.description}
-- {formatShortDate(post.published_date)} -
- - / - - - {readingTime.minutes.toPrecision(1)} minutes - +