Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Gatsby blog starter with MDX support that lets you write JSX inside Markdown to build static blogs with React components.
Gatsby Starter Blog Mdx is a Gatsby blog boilerplate starter that adds MDX support to the classic Gatsby blog starter, letting you embed JSX components directly inside Markdown posts and build a static blog on the React-based Gatsby framework. The starter lives in the hagnerd/gatsby-starter-blog-mdx GitHub repository and connects to the official Gatsby starters collection for alternative starting points.
Gatsby Starter Blog Mdx is a blog starter for Gatsby, the React-based static site generator, that ships with the main Gatsby configuration files needed to run a blog and adds MDX rendering through the gatsby-mdx plugin by ChristopherBiscardi. It takes Markdown and MDX files as content input and produces a statically generated blog site via the standard Gatsby development and build commands. The README positions it as the Gatsby blog starter with additional MDX capability rather than a fully custom theme.
npx gatsby new my-blog-starter https://github.com/hagnerd/gatsby-starter-blog-mdx.gatsby develop runs the site at localhost:8000 and updates the browser live when you edit files such as src/pages/index.js.localhost:8000/___graphql, opens GraphiQL for experimenting with queries against your site's data.Create a site with the Gatsby CLI command npx gatsby new my-blog-starter https://github.com/hagnerd/gatsby-starter-blog-mdx, then type gatsby develop to start the local server. Edit src/pages/index.js to see real-time browser updates, and use the Netlify deploy button when you are ready to publish.
Gatsby is an open-source framework and this starter is published on GitHub, so the boilerplate itself carries no license cost. You only pay for whatever hosting service you choose; the README offers a one-click Netlify deployment path.
MDX is a content format that lets you use JSX inside Markdown. With this starter you can write blog posts in MDX and embed React components directly in the file, which is easier than keeping code examples separate from the written content.
The gatsby-mdx plugin by ChristopherBiscardi powers MDX support; the README credits it as the plugin that makes the blog possible.
Run npx gatsby new my-blog-starter https://github.com/hagnerd/gatsby-starter-blog-mdx to create the site, then gatsby develop to start the development server at localhost:8000.
The development server exposes GraphiQL at localhost:8000/___graphql, a second link shown when you start the site, which lets you practice querying your site's data as covered in the Gatsby tutorial.
