Skip to content

Access app config in markdown content #1696

Answered by ManasMadrecha
julesrx asked this question in Q&A
Discussion options

You must be logged in to vote

Just create one global component, and pass the key you want to display as a prop. So you can easily use that one component in your markdown files, to display any app config value.

Another solution: in the content after parse hook, add the keys you want to use in your markdown files as the autogenerated frontmatter. Then you can use the {{}} syntax to display any such key.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@julesrx
Comment options

Answer selected by julesrx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants