Frontmatter title This is More MDX

Frontmatter authorKathleen McMahon


Can you write more MDX and import a separate MDX file?

Yes you can! This page is an MDX file that is importing another MDX file. This page uses a default export, so it won't take on the default layout set by the gatsby-config file.

This page is also exporting metadata through a const and through a GraphQL export query. Need to double check this one.

Colorful group of umbrellas nestled on the soft tropical sands of Castaway Cay

And a CodePen embed

Where is the imported shortcode?

It is imported right below this. Good times.

Passing children into the <ThisIsMdx/> component/shortcode below does nothing, because it is an MDX file.

Metadata title is This is MDX

Metadata author is Kathleen McMahon

---

Can you write in MDX and use a GraphQL page query in MDX?

Yes you can! This page is an MDX file that is exporting metadata through a const and through a GraphQL export query. This page also uses a default export, so it won't take on the default layout set by the gatsby-config file.

Colorful group of umbrellas nestled on the soft tropical sands of Castaway Cay

Where do I start with this nested file?

The documentation offers guides for all different skill levels, you can find more info at the Gatsby's Quick Start page