Markdown referencing markdown with Gatsby

In yesterday's unauthorized and rum-fueled treasure hunts in the sharky waters around the Gatsby islands helping Mirjam we looked at how to use markdown for marketing pages.

YouTube Sceengrab

One of the tricks we covered is to reference a markdown file from the front matter of another markdown file.

  - title: About us
    md: ../

It gives you access to the fully transformed markdown node through childMarkdownRemark.

query ExampleQuery {
    frontmatter {
      sections {
        md {
          childMarkdownRemark {

Kinda neat, right?

All the best,
Queen Raae

PS: I am a markdown aficionado, how about you? Would you like more markdown tips and tricks?

Interested in more daily treasures like this one?
Sent directly to your inbox?