--- title: HasChildren description: Reports whether the given menu entry has child menu entries. categories: [] keywords: [] action: related: - methods/menu-entry/Children returnType: bool signatures: [MENUENTRY.HasChildren] --- Use the `HasChildren` method when rendering a nested menu. With this site configuration: {{< code-toggle file=hugo >}} [[menu.main]] name = 'Products' pageRef = '/product' weight = 10 [[menu.main]] name = 'Product 1' pageRef = '/products/product-1' parent = 'Products' weight = 1 [[menu.main]] name = 'Product 2' pageRef = '/products/product-2' parent = 'Products' weight = 2 {{< /code-toggle >}} And this template: ```go-html-template