Repository navigation
Any way to read front matter in component? #7045
Unanswered
andrewnicols
asked this question in
Q&A
Replies: 2 comments 3 replies
|
I have a feeling that #6923 will also solve my use-case. |
1 reply
|
Where are you reading is from? In any arbitrary page? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm writing a Terminology component to allow for technical terms to be defined within a glossary. Ideally I'd like to keep a short summary of the item in the front matter of the definition (i.e. in
/docs/terms/example.md), but I don't think it's possible to read the front matter from the client side.Is there any way to read the front matter from within a React component?
Failing that, is there another reasonable way of doing it? Perhaps generating a json output during build which can be read from the client?
All reactions