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 }}