lektor-website/content/docs/api/db/pad/root/contents.lr

17 lines
315 B
Plaintext
Raw Normal View History

2015-12-19 14:52:17 +01:00
title: root
---
summary: Returns the root object of the primary alternative.
---
type: property
---
body:
This works exactly like [get_root :ref](../get-root/) but always returns
the primary alternative and is implemented as a property.
## Example
```html+jinja
<a href="{{ site.root|url }}">Go to Index</a>
```