reflect.IsSite
Reports whether the given value is a Site object.
- Syntax
- reflect.IsSite INPUT
- Returns
- bool
layouts/page.html
{{ with site }}
{{ reflect.IsSite . }} → true
{{ end }}
{{ with site.GetPage "/examples" }}
{{ reflect.IsSite . }} → false
{{ end }}Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page