More ways to define tags in frontmatter
This commit is contained in:
+12
-1
@@ -21,6 +21,17 @@ While SilverBullet allows arbitrary metadata to be added to pages, there are a f
|
||||
* `name` (==DISALLOWED==): is an attribute used for page names, _you should not set it_.
|
||||
* `displayName` (`string`): very similar in effect as `aliases` but will use this name for the page in certain contexts.
|
||||
* `aliases` (`array of strings`): allow you to specify a list of alternative names for this page, which can be used to navigate or link to this page
|
||||
* `tags` (`array of strings` or `string`): an alternative (and perhaps preferred) way to assign [[Tags]] to a page. In principle you specify them as a list of strings, but for convenience you can also specify them as (possibly comma-separated) string, e.g. `tags: tag1, tag2, tag3`
|
||||
* `tags` (`array of strings` or `string`): an alternative (and perhaps preferred) way to assign [[Tags]] to a page. There are various ways to define these, take your pick:
|
||||
```yaml
|
||||
tags: tag1, tag2 # with commas
|
||||
tags: tag1 tag2 # with spaces
|
||||
tags: "#tag1 #tag2" # with pound signs and quotes (you get completion)
|
||||
tags: # as a list
|
||||
- tag1
|
||||
- tag2
|
||||
tags: # as a list with pound signs and quotes
|
||||
- "#tag1"
|
||||
- "#tag2"
|
||||
```
|
||||
|
||||
In addition, in the context of [[Templates]] frontmatter has a very specific interpretation.
|
||||
Reference in New Issue
Block a user