Showing Obsidian front matter using Dataview queries

Obsidian app logo, a purple geometric gem
Obsidian is a powerful knowledge management tool

In this article, I want to share a cool trick for Obsidian that a friend and I used to display the YAML front matter of a note as a table.

YAML front matter in Obsidian

In Obsidian, we can add YAML front matter to our notes. This enables us to add structure to our notes as metadata. This is very useful and enables various use cases (e.g., automation). I use the front matter extensively in my PKM system.

Here's an example:

I've added a number of keys to my contact notes. These enable me to build a super simple (and useful!) contact management system. It makes it super easy to find the information I need when I need it.

The "problem" is that the front matter is only visible in the edit mode, which is not ideal. Luckily, my friend Alexis helped me build a Dataview query that makes it possible to display the YAML front matter as an inline table.

The Must-Have Obsidian Plugins for 2026
Discover 75+ essential Obsidian plugins I use daily, including Dataview, Tasks, Templater, and more. Curated by a PKM expert with 1,000+ users using my Obsidian Starter Kit

Dataview query to display the front matter of a note as a table

Here's the dataview query that we've built:

This query first retrieves the contents of the YAML front matter, excludes the "Tags" field (as those are accessible in other ways already), and renders those as a table. The result looks like this in the view mode:

Inline table displaying the YAML front matter

By the way, I've included this query in the "Person" template of my Obsidian Starter Kit.

Obsidian Starter Kit - Stop Configuring, Start Thinking | Knowledge Forge
Complete Obsidian vault with 40+ auto-filing templates, pre-configured plugins, and PKM methodology. 1,000+ users. 20+ years expertise. 30-day guarantee.

That's it for today! ✨


Go Further

Obsidian for Beginners: The Complete Guide to Getting Started
The complete guide to getting started with Obsidian for beginners. Learn the basics, set up your vault, discover essential plugins, and build a personal knowledge base that grows with you.
Never Lose a Note Again — Time Machine Plugin for Obsidian
Obsidian has a built-in File Recovery plugin, but it's pretty basic. I built the Time Machine plugin to fix that. Here's what it does and why you'll want it.
Discover the Best Obsidian Plugins
An overview of the best Obsidian plugins. Make sure to read this and try these out!

Want to go deeper?

Obsidian Starter Kit - Stop Configuring, Start Thinking | Knowledge Forge
Complete Obsidian vault with 40+ auto-filing templates, pre-configured plugins, and PKM methodology. 1,000+ users. 20+ years expertise. 30-day guarantee.

About Sébastien

Ready to get to the next level?

Found this valuable? Share it with someone who needs it.

Join 6,000+ readers. Get practical systems for knowledge & AI. Free.

Subscribe ✨

Free: Knowledge System Checklist

A clear roadmap to building your own knowledge system. Subscribe and get it straight to your inbox.

6,000+ readers. No spam. Unsubscribe anytime.

Subscribe