Collections
DEPRECATION NOTICE: This is documentation related to legacy publishing. For the latest guidance, reference the current publishing documentation.
Sometimes, you might want to publish a page that has all its children listed like in a blog archive format.
This format is called a collection
in Dendron. You can designate that a page be published as a collection by setting the has_collection property in the note frontmatter.
Sorting
Sorting is by the created
attribute by default. If you wish to set an override, you can add a date
attribute in YYYY-MM-DD
format (eg. date: '2019-08-08'
)
You can control sort order via the sort_order attribute.
Skip Levels
If set, determines how many levels of children to skip when making the collection. For example, you might have the following hierarchy.
- blog.md
- blog.reading.md
- blog.reading.journal.md
- blog.reading.journal.2020.md
- blog.reading.journal.2020.12.md
- blog.reading.journal.2020.12.20.one.md
- blog.reading.journal.2020.12.31.two.md
When you publish, you might only want to show the leaf nodes and skip the intermediary levels. In the above example, setting skipLevels: 3
on blog.reading.md
will result in the following hierarchy being published.
- blog.md
- blog.reading.md
- blog.reading.journal.2020.12.20.one.md
- blog.reading.journal.2020.12.31.two.md
- NOTE: when you set
skipLevels
, this also affects children links
Backlinks