@mdxui/blog
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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/blog

Features

  • 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 navigation
  • PostList - Paginated list of blog posts
  • AuthorBio - Author biography component
  • TagCloud - Tag visualization
  • ShareButtons - Social sharing buttons
  • TableOfContents - Post navigation

Related Packages

  • @mdxui/types - TypeScript type definitions
  • @mdxui/shared - Shared components and utilities
  • @mdxui/widgets - Interactive components

License

MIT © 2024 Drivly

Package Sidebar

Install

npm i @mdxui/blog

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

4.4 kB

Total Files

5

Last publish

Collaborators

  • nathanclevenger