Page

IsSection

报告给定页面是否为 section 页面。

签名
PAGE.IsSection
返回类型
bool

如果页面种类为 section,Page 对象上的 IsSection 方法就返回 true。

content/
├── books/
│   ├── book-1/
│   │   └── index.md  <-- kind = page
│   ├── book-2.md     <-- kind = page
│   └── _index.md     <-- kind = section
└── _index.md         <-- kind = home
{{ .IsSection }}