HUGO
Menu
GitHub 87548 stars Mastodon

IsSection

报告给定页面是否是栏目页面。

Syntax

PAGE.IsSection

Returns

bool

如果 页面类型sectionPage 对象上的 IsSection 方法返回 true

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

Last updated: January 1, 0001
Improve this page