diff --git a/src/components/changelog/ChangelogCard.astro b/src/components/changelog/ChangelogCard.astro index 4935b8ec70..bb0db4da55 100644 --- a/src/components/changelog/ChangelogCard.astro +++ b/src/components/changelog/ChangelogCard.astro @@ -1,20 +1,15 @@ --- import type { CollectionEntry } from 'astro:content'; -import { formatDate, getProductAccent, renderInlineMarkdown } from '~/util/changelog'; +import { getProductAccent, renderInlineMarkdown } from '~/util/changelog'; interface Props { entry: CollectionEntry<'changelog'>; } const { entry } = Astro.props; -const { title, description, date, tags } = entry.data; +const { title, description, tags } = entry.data; const primaryTag = tags[0]; const accent = getProductAccent(primaryTag); - -const monthDay = new Date(date).toLocaleDateString('en-US', { - month: 'short', - day: 'numeric', -}); ---
{description &&

{description}

} -
- - {tags.length > 0 && ( + {tags.length > 0 && ( +
{tags.map((t) => {t})}
- )} -
+
+ )}