How to read frontmatter of another page? #10930
-
|
I'm on page A. Options tried:
Options considered: In How to read frontmatter of another page? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
This data structure is much smaller on purpose:
We don't put front matter in global data, but:
All this is not super convenient though. The real solution to make this convenient is to add React Server Components, my big 2025 project: #9089
I'm not sure to understand what you try to do.
Now, if filePath === "a.md", you are free to do whatever you want with file "b.md". |
Beta Was this translation helpful? Give feedback.

useDocByIdreturns "global data" about a given doc.This data structure is much smaller on purpose:
We don't put front matter in global data, but:
All this is not super convenient though. The real solution to make this convenient is to add React Server Components, my big 2025 project: #9089