Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

YAML Headers?

A topic by RobRose created Feb 14, 2021 Views: 160 Replies: 1
Viewing posts 1 to 2
(+1)

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.

(3 edits) (+1)

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

Deepdwn editor with open document containing categories and tags in yaml at the beginning. Filter and file panels show these items for filtering with some active.