reflect.IsSite
Reports whether the given value is a Site object.
- Syntax
- reflect.IsSite INPUT
- Returns
- bool
Usage
The reflect.IsSite function reports whether the given value is a Site object.
Examples
layouts/page.html
{{ with site }}
{{ reflect.IsSite . }} → true
{{ end }}
{{ with site.GetPage "/examples" }}
{{ reflect.IsSite . }} → false
{{ end }}Last updated:
November 22, 2026
:
content: Apply style guide to reflect functions (94d3db6cf)
Improve this page