Role
Returns the Role object for the given site.
Syntax
SITE.Role
Returns
roles.Role
The Role method on a Site object returns the Role object for the given site, derived from the role definition in your project configuration.
Methods
IsDefault
(bool) Reports whether this is the default role.
{{ .Site.Role.IsDefault }} → trueName
(string) Returns the role name. This is the lowercased key from your project configuration.
{{ .Site.Role.Name }} → guestLast updated:
February 25, 2026
:
Merge commit '0c2fa2460f485e0eca564dcccf36d34538374922' (b0d3364f1)
Improve this page