# Setting a menu's name

**URL:** <https://discourse.gohugo.io/t/setting-a-menus-name/28711>\
**Category:** support\
**Created:** [October 7, 2020, 9:14pm UTC](https://discourse.gohugo.io/t/setting-a-menus-name/28711 "2020-10-07T21:14:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunoamaral](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/brunoamaral/32/21144_2.png) [@brunoamaral](https://discourse.gohugo.io/u/brunoamaral)\
**Post date:** [October 7, 2020, 9:14pm UTC](https://discourse.gohugo.io/t/setting-a-menus-name/28711/1 "2020-10-07T21:14:21Z")

</div>

Just wondering if this is possible. My menu has 3 columns and I set the contents in config.yaml:

```auto
menu:
  footercolumn1:
  - identifier: blog
    name: This is the blog section
    title: blog section
    url: /blog/
    weight: 1

  footercolumn2:
  - identifier: blog5
    name: This is the blog section
    title: blog section
    url: /blog/
    weight: 1
  - identifier: blog6

```

This works as expected. And each of the columns has a heading, so I was thinking if there was some way to extrapolate that information from the config file.

Something like this:

```auto
menu:
  footercolumn1:
  - name: About
  - identifier: blog
    name: This is the blog section
    title: blog section
    url: /blog/
    weight: 1

```

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [October 8, 2020, 12:18am UTC](https://discourse.gohugo.io/t/setting-a-menus-name/28711/2 "2020-10-08T00:18:39Z")

</div>

Two options I could think of:

```auto
{{ range $k, $v := site.Menus }}
   {{ humanize (string $k) }}
{{ end }}

```

Assuming you name your menus something `humanize`-able, eg

```auto
menu:
  footer-column-one:
...
=> Footer column one

```

Option 2 is to restructure your menus to have one main menu, and have parent-child relationships:

```auto
main:
    - identifier: col1
      name: Col 1 Heading
    - identifier: col1a
      name: Col 1 Child
      parent: col1

```

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [October 8, 2020, 2:10pm UTC](https://discourse.gohugo.io/t/setting-a-menus-name/28711/3 "2020-10-08T14:10:14Z")

</div>

What do you mean by “extracting”? Do you want to see what is set up? Then have a look at (you probably know it) [hugo-debugprint](https://github.com/kaushalmodi/hugo-debugprint). If you want to use these parameters somewhere else in the site than in a menu loop I would `scratch` them once and use these variables.

---

<div class="post-metadata">

**Author:** ![brunoamaral](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/brunoamaral/32/21144_2.png) [@brunoamaral](https://discourse.gohugo.io/u/brunoamaral)\
**Post date:** [October 8, 2020, 10:43pm UTC](https://discourse.gohugo.io/t/setting-a-menus-name/28711/4 "2020-10-08T22:43:14Z")

</div>

> [@davidsneighbour](#):
>
> What do you mean by “extracting”?

I meant something like what @pointyfar suggested, where, once you know which menu you want to display, you don’t need to specify the ‘human’ version of its title.
