Many static site generators use YAML headers in the form:
---
yaml: example
---
Rest of md document.
I was wondering if Deepdwn supports them as well? Would be nice to be able to query based on yaml headers.
Hi!
Yep, yaml is supported. The following tags are used by Deepdwn (though you can add any other valid yaml you want for your own purposes):
title
: Sets the file title to display in the file list (ex: title: My Favorite Books
)category
: Used to populate the Category section in the filter sidebar. You can then select that category to find all documents with the same category. (ex: category: Writing
)tags
: An array of tags, populates the Tags section of the sidebar for filtering: (ex: tags: [goats, bears, journal]
)All yaml content (whether used by Deepdwn or not) is searchable in the editor for normal find and replace, as well as in the file list to locate specific files.
Hope that helps!
[edit] Example screenshot with yaml in editor, and how those are used by Deepdwn