Indicates that the module should only output root nodes (instead of all
nodes which is the default behavior).
- Namespace
- Statiq.Core
- Containing Type
- CreateTree
Syntax
public CreateTree WithNesting(bool nesting = true, bool collapseRoot = false)
Parameters
Name |
Type |
Description |
nesting |
bool |
true to enable nesting and only output the root nodes. |
collapseRoot |
bool |
Indicates that the root of the tree should be collapsed and the module
should output first-level documents as if they were root documents. This setting
has no effect if not nesting.
|
Return Value
Type |
Description |
CreateTree |
The current module instance. |