---
menu:
  docs:
    name:       "foo"
    parent:     'home'
    pre:        "<i class='fa fa-heart'></i>"
    identifier: "foo"
    url:        "/foo/"
    weight:     20
---
{{/* Menu */}}
{{"https://gohugo.io/variables/menus/" | markdownify }}
{{"https://gohugo.io/content-management/menus/" | markdownify }}

{{ range .Site.Menus.main -}}
10) {{ printf "%-8v | %-8v | %-12v | %-8v " .Name .Title .URL .Pre }}
{{ end }}

{{`just to show the structure `}}
{{ len  .Site.Menus.main   }}
{{ index .Site.Menus.main 0  }}
{{ (index .Site.Menus.main 0).Name  }}
{{ index .Site.Menus.main 1  }}
{{ (index .Site.Menus.main 1).URL   }}

{{"https://gohugo.io/content-management/menus/#add-content-to-menus" | markdownify }}
{{ range .Page.Menus }}
20) {{ printf "%-8v | %-8v | %-12v | %-8v | %-8v" .Name .Title .URL .Pre .Parent }}
{{ end }}

.Children  : {{ (index .Page.Menus "docs").Children  }}
.Identifier: {{ (index .Page.Menus "docs").Identifier}}
.Menu      : {{ (index .Page.Menus "docs").Menu      }}
.Name      : {{ (index .Page.Menus "docs").Name      }}
.Parent    : {{ (index .Page.Menus "docs").Parent    }}
.Post      : {{ (index .Page.Menus "docs").Post      }}
.Pre       : {{ (index .Page.Menus "docs").Pre       }}
.URL       : {{ (index .Page.Menus "docs").URL       }}
.Weight    : {{ (index .Page.Menus "docs").Weight    }}

.HasChildren    : {{ (index .Page.Menus "docs").HasChildren    }}

{{/* printf "#v:%#v" .Page.Menus */}}


https://gohugo.io/variables/menus/
https://gohugo.io/content-management/menus/

10) Home     | Base     | /HugoTemplateCodePlyGnd/index.html | fas fa-home 
10) Contact  | Touch    | /HugoTemplateCodePlyGnd/contact | far fa-address-card 


just to show the structure 
2
{/HugoTemplateCodePlyGnd/index.html <nil> Home main  Base fas fa-home  1  []}
Home
{/HugoTemplateCodePlyGnd/contact <nil> Contact main  Touch far fa-address-card  2  []}
/HugoTemplateCodePlyGnd/contact

https://gohugo.io/content-management/menus/#add-content-to-menus

20) foo      |          | /foo/        | <i class='fa fa-heart'></i> | home    


.Children  : []
.Identifier: foo
.Menu      : docs
.Name      : foo
.Parent    : home
.Post      : 
.Pre       : 
.URL       : /foo/
.Weight    : 20

.HasChildren    : false