import { allChangelogs } from '@/.contentlayer/generated'; import Mdx from '@/components/MDX'; import { changelogEnabled } from '@/config/site'; import { dateTemplate, distanceToNow, format } from '@/lib/date'; import { notFound } from 'next/navigation'; export const metadata = { title: 'Changelog', description: 'Discover the latest Tabler app updates and enhancements on our Changelog page. Stay informed and experience the best features!', }; export default function ChangelogPage() { if (!changelogEnabled) { notFound(); } const changelogs = allChangelogs .sort((a, b) => { return new Date(a.date).getTime() - new Date(b.date).getTime(); }) .reverse(); return ( <> Changelog Most recent updates, bug fixes, and introduction of new features. {changelogs.map((changelog) => ( v{changelog.version} Published{' '} {distanceToNow(changelog.date)} {changelog.title && {changelog.title}} ))} > ); }
Most recent updates, bug fixes, and introduction of new features.