-
{post.tags.map((tag, j) => (
- {tag} ))}
{post.title}
{post.description}
{post.authorName}
{post.authorRole}
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 (
{post.description}
{post.authorName}
{post.authorRole}