mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 04:02:38 +00:00
729 B
729 B
title, description, categories, keywords, params
| title | description | categories | keywords | params | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Role | Returns the Role object for the given site. |
|
{{< new-in 0.153.0 />}}
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 }} → true
Name
(string) Returns the role name. This is the lowercased key from your project configuration.
{{ .Site.Role.Name }} → guest