1.0.2 • Published 11 months ago
@mdxui/blog v1.0.2
@mdxui/blog
Blog-specific layouts and components for MDXUI, optimized for creating modern, performant blog sites with MDX and YAML-LD frontmatter.
Installation
pnpm add @mdxui/blogFeatures
- Blog-specific layouts
- Post list components
- Category and tag components
- Author bio components
- Related posts
- Social sharing
- SEO optimization
- RSS feed support
Usage
import { BlogLayout, PostList, AuthorBio } from '@mdxui/blog'
// In your MDX file
---
$type: BlogPost
title: My First Blog Post
author: John Doe
date: 2024-03-20
tags: ['react', 'mdx']
---
export default function BlogPost({ children }) {
return (
<BlogLayout>
<article>{children}</article>
<AuthorBio />
</BlogLayout>
)
}
// In your blog index
export default function BlogIndex({ posts }) {
return (
<BlogLayout>
<PostList posts={posts} />
</BlogLayout>
)
}Components
BlogLayout- Main blog layout with sidebar and navigationPostList- Paginated list of blog postsAuthorBio- Author biography componentTagCloud- Tag visualizationShareButtons- Social sharing buttonsTableOfContents- Post navigation
Related Packages
@mdxui/types- TypeScript type definitions@mdxui/shared- Shared components and utilities@mdxui/widgets- Interactive components
License
MIT © 2024 Drivly