Last active
May 19, 2023 06:24
-
-
Save dsebastien/5e7ce0acfc51ac7a00ee53e09c0bd02a to your computer and use it in GitHub Desktop.
Dataview query to display YAML front matter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```dataviewjs | |
const frontmatter = Object.entries(dv.current().file.frontmatter).map((obj) => { | |
obj[0] = obj[0][0].toUpperCase() + obj[0].substr(1); | |
return obj; | |
}).filter(obj => obj[0] != "Tags"); | |
dv.table(frontmatter.keys(), frontmatter); | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment