IsHome
报告给定页面是否是主页。
Syntax
PAGE.IsHome
Returns
bool
如果 页面类型 是 home,Page 对象上的 IsHome 方法返回 true。
content/
├── books/
│ ├── book-1/
│ │ └── index.md <-- kind = page
│ ├── book-2.md <-- kind = page
│ └── _index.md <-- kind = section
└── _index.md <-- kind = home{{ .IsHome }}