<div id="nav-border" class="container"> <nav id="menu" class="nav"> {{ range .Site.Menus.main }} <a class="nav-link" href="{{ .URL }}"> {{ if .Pre }} {{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }} {{ $icon }} {{ end }} {{ $text := print .Name | safeHTML }} {{ $text }} </a> {{ end }} </nav> </div>