# Menu entry 方法
> 在菜单模板中使用这些方法。
- 本页规范地址：https://hugozh.cn/methods/menu-entry/
- 最近更新：2026-10-02
- 站点：Hugo 中文文档（https://hugozh.cn/）· 社区维护的非官方中文翻译

## 本章页面
- [Children](https://hugozh.cn/methods/menu-entry/children/)：返回给定菜单条目下的子菜单条目集合（如果有）。（Markdown：https://hugozh.cn/methods/menu-entry/children/index.md）
- [HasChildren](https://hugozh.cn/methods/menu-entry/haschildren/)：报告给定菜单条目是否有子菜单条目。（Markdown：https://hugozh.cn/methods/menu-entry/haschildren/index.md）
- [Identifier](https://hugozh.cn/methods/menu-entry/identifier/)：返回给定菜单条目的 `identifier` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/identifier/index.md）
- [KeyName](https://hugozh.cn/methods/menu-entry/keyname/)：返回给定菜单条目的 `identifier` 属性，若不存在则回退到其 `name` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/keyname/index.md）
- [Menu](https://hugozh.cn/methods/menu-entry/menu/)：返回包含给定菜单条目的菜单标识符。（Markdown：https://hugozh.cn/methods/menu-entry/menu/index.md）
- [Name](https://hugozh.cn/methods/menu-entry/name/)：返回给定菜单条目的 `name` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/name/index.md）
- [Page](https://hugozh.cn/methods/menu-entry/page/)：返回与给定菜单条目关联的 Page 对象。（Markdown：https://hugozh.cn/methods/menu-entry/page/index.md）
- [PageRef](https://hugozh.cn/methods/menu-entry/pageref/)：返回给定菜单条目的 `pageRef` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/pageref/index.md）
- [Params](https://hugozh.cn/methods/menu-entry/params/)：返回给定菜单条目的 `params` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/params/index.md）
- [Parent](https://hugozh.cn/methods/menu-entry/parent/)：返回给定菜单条目的 `parent` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/parent/index.md）
- [Post](https://hugozh.cn/methods/menu-entry/post/)：返回给定菜单条目的 `post` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/post/index.md）
- [Pre](https://hugozh.cn/methods/menu-entry/pre/)：返回给定菜单条目的 `pre` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/pre/index.md）
- [Title](https://hugozh.cn/methods/menu-entry/title/)：返回给定菜单条目的 `title` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/title/index.md）
- [URL](https://hugozh.cn/methods/menu-entry/url/)：返回与给定菜单条目关联的页面的相对永久链接，否则返回其 `url` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/url/index.md）
- [Weight](https://hugozh.cn/methods/menu-entry/weight/)：返回给定菜单条目的 `weight` 属性。（Markdown：https://hugozh.cn/methods/menu-entry/weight/index.md）

---
