-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(content-blog): include front matter in loaded content metadata #6189
Conversation
✔️ [V2] 🔨 Explore the source changes: 0290777 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61c6a700e6cf7600078ea2f6 😎 Browse the preview: https://deploy-preview-6189--docusaurus-2.netlify.app |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-6189--docusaurus-2.netlify.app/ |
Size Change: 0 B Total Size: 662 kB ℹ️ View Unchanged
|
nice, i also need it. please mr |
@KELEN Merged. Please test with canary release |
@Josh-Cena canary version has error Can't find docs preferred context, maybe you forgot to use the "DocsPreferredVersionContextProvider"? |
Seems like a distinct issue. This PR doesn't even change docs-related code. Could you send another issue with your code sample / a minimal repro? |
I also encountered this problem. How did you solve it in the end? |
@honlyHuang please try to run the This is likely an issue with your site, unless you are able to provide a small repro |
@slorber Thx! I solved it. The reason is that I upgraded from beta.8 to beta.15, and the plugin configuration has not been updated. |
Motivation
In the spirit of plugin enhancement (#4492) we should allow users to declare additional server-side metadata through front matter. #4495 added the front matter to doc metadata; we should do the same for blog posts as well.
This has been requested on Discord.
Have you read the Contributing Guidelines on pull requests?
Yes