menu
up-caret
down-caret

Gatsby.js

A channel about Gatsby, which includes GraphQL, React, static site generators, Redux, JavaScript, serverless.

# General

General Chatter

Trending conversations
Share your stack...I'd love to see what you use the most in combo with Gatsby
@block-guy-eddie · 1d
Been at this for months 😓 Preserving routes in production?
@ahrjarrett · 1h
How do I access client_secret.json in production?
@mckvr · 17h
"Shortcodes" Within Gatsby
@nickreese · 5d
Greater than operators in graphql?
@dakuan · 31d

Markdown in frontmatter

August 23, 2018 at 1:49pm

Hi. Sorry if this question has been asked before, but I couldn't find an answer.

Trying out Gatsby in my first project right now and I want a .md file with site settings. I would want several fields with MarkDown in there.

Is the best approach to have my frontmatter like this?:

----

footer {

signUpStuff: >-

bla bla .... [click me]()

aboutUsStuff: >-

bla bla...

}

----

If so, how do i transform that into html? Is there a markdownRemark "filter" or something or should I convert it with a markdown library.

Or is there a better way?

No messages yet