get_root (alt='_primary')

  • Method of Pad

The tree only has one root record but it can come in different Alternatives. This method can be used to target the root page of a specific one. If no alt is provided, then the primary alt is loaded.

Example

{% set root = site.get_root(alt='de') %}
<a href="{{ root|url }}">Go to German Page</a>

Comments