mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 12:12:37 +00:00
30a20122b7
# Conflicts: # docs/data/docs.yaml
830 B
830 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. The role object is derived from the role definition in the site configuration.
Methods
IsDefault
(bool) Reports whether this is the default role object as defined by the defaultContentRole setting in the site configuration.
{{ .Site.Role.IsDefault }} → true
Name
(string) Returns the role name. This is the lower cased key from the site configuration.
{{ .Site.Role.Name }} → guest