0.1.1 • Published 5 years ago

@jxnblk/gatsby-theme-mdx-blog v0.1.1

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

@jxnblk/gatsby-theme-mdx-blog

WIP Hyperminimal Gatsby theme for building blogs with MDX

Used in https://jxnblk.com/blog

npm i @jxnblk/gatsby-theme-mdx-blog

Features

Theming

The blog can be completely themed using Theme UI.

TK

Options

The following options can be passed to the theme in your site's gatsby-config.js file.

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: '@jxnblk/gatsby-theme-mdx-blog',
      options: {
        name: 'writing',
        path: 'src/content',
        pageSize: 16,
      }
    }
  ]
}
  • name: path for rendered pages in your site, default ''
  • path: path for source folder of MDX blog posts, default src/posts
  • pageSize: number of posts to display per page

:warning: if you change the path, make sure you have content already since gatsby relies on having content to generate the frontmatter properly.

MIT License