How to render headmatter data in custom layout? Missing docs or feature, not sure which one. #1927
Unanswered
barrymichaeldoyle
asked this question in
Q&A
Replies: 1 comment
-
Try Here are some docs: https://sli.dev/guide/global-context#frontmatter |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
I would like to use headmatter data inside my custom layout but there isn't any documentation on how this can be done.
Describe the solution you'd like
If I have a
cover
layout. How can I render a title in the template?example.md
/layouts/cover.vue
Describe alternatives you've considered
The way I currently do it is by manually styling
h1
tags inside thecover
css class.Beta Was this translation helpful? Give feedback.
All reactions