PostItem.tsx 615 B

123456789101112131415161718192021
  1. import Link from '@/components/Link';
  2. import clsx from 'clsx';
  3. import BlogAuthors from '@/components/blog/Authors';
  4. export default function PostItem({ title, category, slug, date, children, authors, wide = false }) {
  5. return (
  6. <div>
  7. <div className="row gx-5 justify-center">
  8. <div className="col-3">
  9. <BlogAuthors authors={authors} />
  10. </div>
  11. <article className="col-6">
  12. <Link href={`/blog/${slug}`} className="h3 mb-3">
  13. {title}
  14. </Link>
  15. <div className="markdown">{children}</div>
  16. </article>
  17. </div>
  18. </div>
  19. );
  20. }