IsPage
Syntax
PAGE.IsPage
Returns
bool
IsPage 方法在 Page 对象上返回 true,如果页面类型是 page。
content/
├── books/
│ ├── book-1/
│ │ └── index.md <-- 类型 = 页面
│ ├── book-2.md <-- 类型 = 页面
│ └── _index.md <-- 类型 = 章节
└── _index.md <-- 类型 = 主页
{{ .IsPage }}