<ul id="nav" class="nav justify-content-center">
{{ range .Site.Menus.main }}
<li class="nav-item">
<a class="nav-link" href="{{ .URL }}">
{{ print .Pre | safeHTML }}
{{ $text := print .Name | safeHTML }}
{{ $text }}
</a>
</li>
{{ end }}
</ul>