import { allGuides } from 'contentlayer/generated'; import { format } from '@/lib/date'; import Link from '@/components/Link'; export const metadata = { title: 'Guides', description: 'Learn how to use Tabler effectively with our comprehensive guides. Master the app and streamline your workflow today.', }; export default async function GuidesPage() { return (

Guides

The most interesting articles to help you build better applications

{allGuides.map((guide, i) => (
{format(guide.date, 'd')}
{format(guide.date, 'MMM')}
{guide.image && (
{guide.title}
)}
{guide.title && (

{guide?.title}

)}

{guide.summary}

Read more
))}
); } // export async function getStaticProps() { // const guides = await getAllGuides(['slug', 'title', 'summary', 'date', 'image']) // return { // props: { // guides, // menu: 'guides', // meta: { // bodyClassName: 'bg-light', // title: 'Guides - The most interesting articles to help you build better applications', // }, // }, // } // }