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