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