import Icon from '@/components/Icon';
import { iconsUrl, blogEnabled } from '@/config/site';
import Link from 'components/Link';
import { allPosts } from 'contentlayer/generated';
import { format } from 'date-fns';
import { notFound } from 'next/navigation';
export const metadata = {
title: 'Blog',
description: 'Stay in the loop with all things Tabler. We provide regular updates on new features, changelogs, and news, ensuring you never miss any of our software developments.',
};
export default async function BlogPage() {
if(! blogEnabled) {
notFound();
}
return (
<>
Blog
Stay in the loop with all things Tabler and Tabler Icons. Regular updates on new features, changelogs, and news, ensuring you never miss any of our software developments.
{allPosts.map((post, i) => (
{post.image && (
)}
{post.title && (
{post?.title}
)}
{post.description}
{format(new Date(post.date), 'MMM d, Y')}
Read more
))}
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis quibusdam quos est repellat rerum molestias, autem ullam, exercitationem magni non eos sunt, voluptates laboriosam dignissimos mollitia tempora ipsum illo
adipisci.