diff --git a/src/components/Changelog/ChangelogItem.astro b/src/components/Changelog/ChangelogItem.astro index 7b61fb5f3..10c777513 100644 --- a/src/components/Changelog/ChangelogItem.astro +++ b/src/components/Changelog/ChangelogItem.astro @@ -1,45 +1,46 @@ --- import { DateTime } from 'luxon'; -import type { ChangelogFileType } from '../../lib/changelog'; import ChangelogImages from '../ChangelogImages'; +import type { ChangelogDocument } from '../../queries/changelog'; interface Props { - changelog: ChangelogFileType; + changelog: ChangelogDocument; } const { changelog } = Astro.props; -const { frontmatter } = changelog; -const formattedDate = DateTime.fromISO(frontmatter.date).toFormat( +const formattedDate = DateTime.fromISO(changelog.createdAt).toFormat( 'dd LLL, yyyy', ); --- -
We are always improving our content, adding new resources and adding features to enhance your learning experience. @@ -25,27 +25,27 @@ const top10Changelogs = allChangelogs.slice(0, 10);