Recurisve Navigations
Navigations and menus are an essential part of any website. Automad provides convenient ways to iterate the pages of a site recursively and therefore allows for creating site trees in a few simple steps. For simple cases, the navTree function generates a complete tree in a single statement. In case you need full control over the generated markup, you can build your own tree using a recursive snippet. Conceptually, building such a tree can be divided into three steps.