question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[V2] Custom frontmatter/metadata is no longer available

See original GitHub issue

🐛 Bug Report

Custom frontmatter/metadata defined in markdown files is no longer accessible within the DocItem component when it previously was.

It appears this change broke the behavior.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. Add a custom frontmatter field in a blog post or documentation markdown file.
  2. The property is no longer available in this object.

Expected behavior

Frontmatter, by nature, should allow for a variety of keys, especially a platform designed to serve a variety of different project types.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yangshuncommented, Dec 2, 2019

@binarylogic We would discourage swizzling components at this point until we reach beta or even 2.0.0 for this very reason. Apologies for the changes.

1reaction
binarylogiccommented, Dec 2, 2019

Thanks, I must have been using an older version of DocItem/index.js because the frontMatter definition was not included.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Front matter metadata nested fields are no longer visible in ...
Meaning: all front matter fields are visible (and links are clickable as well). Actual result. publications 2-level “object” field is not shown ...
Read more >
Settings - Front Matter CMS
frontMatter.​​ Specify the name of the metadata field that will be used to show the tags on the content card. When empty or...
Read more >
Frontmatter - Dendron
Frontmatter is a collection of custom attributes at the top of ... the note is created and it is used to store metadata...
Read more >
MKdocs not taking the meta-data (frontmatter) into ...
I want the search to look into the meta title, subtitle, and the tags to find the result and then consider H1, H2......
Read more >
Frontmatter - MDX
This guide explores how to support YAML frontmatter in MDX. MDX supports standard markdown syntax (CommonMark). That means frontmatter is not ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found