# What is .Pre?

**URL:** <https://discourse.gohugo.io/t/what-is-pre/42469>\
**Category:** support\
**Created:** [January 17, 2023, 7:53am UTC](https://discourse.gohugo.io/t/what-is-pre/42469 "2023-01-17T07:53:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arif](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arif/32/20931_2.png) [@Arif](https://discourse.gohugo.io/u/Arif)\
**Post date:** [January 17, 2023, 7:53am UTC](https://discourse.gohugo.io/t/what-is-pre/42469/1 "2023-01-17T07:53:55Z")

</div>

What are some usage examples for `.Pre`?

> **[Menu Entry Properties](https://gohugo.io/variables/menus/#menu-entry-variables)**
>
> A menu entry in a menu-template has specific variables and functions to make menu management easier.

---

<div class="post-metadata">

**Author:** ![nfriedli](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nfriedli/32/26027_2.png) [@nfriedli](https://discourse.gohugo.io/u/nfriedli)\
**Post date:** [January 17, 2023, 10:11am UTC](https://discourse.gohugo.io/t/what-is-pre/42469/2 "2023-01-17T10:11:58Z")

</div>

Here is an exemple of `.Pre`: [Menus | Hugo](https://gohugo.io/content-management/menus/)

```auto
[menu]
[[menu.main]]
  identifier = 'about'
  name = 'about hugo'
  pre = "<i class='fa fa-heart'></i>"
  url = '/about/'
  weight = -110

```

---

<div class="post-metadata">

**Author:** ![Arif](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arif/32/20931_2.png) [@Arif](https://discourse.gohugo.io/u/Arif)\
**Post date:** [January 17, 2023, 12:44pm UTC](https://discourse.gohugo.io/t/what-is-pre/42469/3 "2023-01-17T12:44:30Z")

</div>

Adding icons before menus?

---

<div class="post-metadata">

**Author:** ![nfriedli](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nfriedli/32/26027_2.png) [@nfriedli](https://discourse.gohugo.io/u/nfriedli)\
**Post date:** [January 17, 2023, 1:29pm UTC](https://discourse.gohugo.io/t/what-is-pre/42469/4 "2023-01-17T13:29:20Z")

</div>

Yes. In this example, add an icon with Font Awesome.

---

<div class="post-metadata">

**Author:** ![regis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/regis/32/4958_2.png) [@regis](https://discourse.gohugo.io/u/regis)\
**Post date:** [January 17, 2023, 4:16pm UTC](https://discourse.gohugo.io/t/what-is-pre/42469/5 "2023-01-17T16:16:38Z")

</div>

`.Pre` and `.Post` lost a lot sense with the addition of [Menu .Params](https://gohugo.io/content-management/menus/#params)

---

<div class="post-metadata">

**Author:** ![Arif](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arif/32/20931_2.png) [@Arif](https://discourse.gohugo.io/u/Arif)\
**Post date:** [January 17, 2023, 6:05pm UTC](https://discourse.gohugo.io/t/what-is-pre/42469/6 "2023-01-17T18:05:24Z")

</div>

I wanted to raise the same point because I just stumbled upon Menu Params.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [January 19, 2023, 6:05pm UTC](https://discourse.gohugo.io/t/what-is-pre/42469/7 "2023-01-19T18:05:28Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
