level

returns the level of the current page within the site tree.

@t(level)

Example

You can use this tool, to create dynamically class names for your pages. That enables different styling for pages depending on their location/level within the site's tree.

<body class="level-@t(level)">
    ...
</body>
See also