Back to Mdx

Blog

docs/blog/index.mdx

3.1.1860 B
Original Source

{ /**

  • @import {Item} from '../_component/sort.js' */

/**

  • @typedef Props
  • @property {Item} navigationTree */ }

import assert from 'node:assert/strict' import {BlogGroup} from '../_component/blog.jsx'

export const info = { author: [{name: 'MDX Contributors'}], modified: new Date('2024-07-04'), published: new Date('2021-11-01') } export const navExcludeGroup = true export const navigationSortItems = 'navSortSelf,meta.published:desc' export const navSortSelf = 7

Blog

The latest news about MDX.

{ (function () { const navigationTree = props.navigationTree const category = navigationTree.children.find(function (item) { return item.name === '/blog/' }) assert(category)

return (
  <nav>
    <BlogGroup items={category.children} sort={navigationSortItems} />
  </nav>
)

})() }