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方法返回给title定菜单项的属性。如果title未定义,并且菜单项解析为页面,则Title返回页面Title。
<ul>
{{ range .Site.Menus.main }}
<li><a href="{{ .URL }}" title="{{ .Title }}>{{ .Name }}</a></li>
{{ end }}
</ul>