Frontmatter is a common format to attach additional metadata (data about data) to markdown documents. Many tools support it as a markdown extension.In SilverBullet, there are multiple ways to attach Metadata to a page; frontmatter is the most popular one.You create frontmatter by starting your markdown document with --- followed by YAML encoded attributes and then ending with --- again. Followed by the regular body of your document. This very page contains some frontmatter, click on it to see the underlying code.Here is another example: ---
status: Draft
tags:
- tag1
- tag2
---
## This is a section
This is content
For convenience, you may use the attribute.subAttribute notation, which internally will expand:attribute.subAttribute: 10
toattribute:
subAttribute: 10
Special attributes
While SilverBullet allows arbitrary metadata to be added to pages, there are a few attributes with special meaning:For specific use cases, like Page Template or Slash Template, frontmatter may have specific meaning.