summaryrefslogtreecommitdiffstats
path: root/docs/content/en/methods/menu-entry/Title.md
blob: 64bba2d441c6f89a2d4fe2a5e98c2c0afb6fed3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
title: Title
description: Returns the `title` property of the given menu entry.  
categories: []
keywords: []
action:
  related: []
  returnType: string
  signatures: [MENUENTRY.Title]
---

The `Title` method returns the `title` property of the given menu entry. If the `title` is not defined, and the menu entry resolves to a page, the `Title`  returns the page [`Title`].

[`Title`]: /methods/page/title/

```go-html-template
<ul>
  {{ range .Site.Menus.main }}
    <li><a href="{{ .URL }}" title="{{ .Title }}>{{ .Name }}</a></li>
  {{ end }}
</ul>
```