feat: PageProperties component to show frontmatter similar to Obsidian #1720
+255
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is my component for rendering the frontmatter in cases where frontmatter is an important part of your notes that you want to be visible.
It has overridable field renderers with a couple of defaults - hiding things, a tag renderer, and the default renderer that handles external links as well as obsidian-like internal links (that one could maybe be a config toggle too).
Otherwise, it's pretty simple - simple enough imo to include in quartz.
This is a draft because firstly it needs documentation (and I was lazy to write that), and also because it depends on #1673 - it's actually a soft dependency so that rendered frontmatter wikilinks appear in graphs and whatnot, but I also call the function I introduced there - so actually a hard dep.
But people have asked for it so here it is in public at least.
Note
Because GitHub sucks at stacked pull requests, until #1673 is merged (and I rebase it) this PR shows both the commit introducing the component and the commit from #1673, so if you actually review this please only look at the last commit specifically.
Example that I've shown already: