import type { Metadata } from 'next'; import { Trans } from '@lingui/macro'; import { allBlogPosts } from 'contentlayer/generated'; import { setupI18nSSR } from '@documenso/lib/client-only/providers/i18n.server'; export const metadata: Metadata = { title: 'Blog', }; export default async function BlogPage() { const { i18n } = await setupI18nSSR(); const blogPosts = allBlogPosts.sort((a, b) => { const dateA = new Date(a.date); const dateB = new Date(b.date); return dateB.getTime() - dateA.getTime(); }); return (

From the blog

Get the latest news from Documenso, including product updates, team announcements and more!

{blogPosts.map((post, i) => (
{post.tags.length > 0 && (
    {post.tags.map((tag, j) => (
  • {tag}
  • ))}
)}

{post.title}

{post.description}

{post.authorImage && ( {`Image )}

{post.authorName}

{post.authorRole}

))}
); }