github.com/rabbouni145/gg@v0.47.1/docs/themes/gohugoioTheme/layouts/partials/nav-links-docs.html (about) 1 {{ $currentPage := . }} 2 <nav role="navigation"> 3 <ul class="list pa0 nl2"> 4 {{ range .Site.Menus.docs.ByWeight }} 5 {{ $post := printf "%s" .Post }} 6 <li class="f5 w-100 hover-bg-light-gray hover-accent-color-light fw8{{ if eq $post "break" }} mb1 bb b--moon-gray{{ end }}"> 7 <a href="{{ if .HasChildren }}javascript:void(0){{ else }}{{ .URL }}{{ end }}" class="js-toggle dib w-100 link mid-gray hover-accent-color-light pl2 pr2 pv2 {{if or ($currentPage.IsMenuCurrent "docs" .) ($currentPage.HasMenuCurrent "docs" .) }} primary-color{{end}}" data-target=".{{ .Identifier }}">{{ .Name }}</a> 8 9 {{- if .HasChildren }} 10 <ul class="{{ .Identifier }} desktopmenu animated fadeIn list pl0 bg-light-gray{{if $currentPage.HasMenuCurrent "docs" . }} db{{ else }} dn{{ end }}"> 11 {{- range .Children }} 12 <li class="f6 fw4"> 13 <a href="{{.URL}}" class="db link hover-bg-gray hover-white pl3 pr2 pv2 {{if $currentPage.IsMenuCurrent "docs" . }}primary-color {{ else }}black {{end}}"> 14 {{ .Name }} 15 </a> 16 </li> 17 {{- end}} 18 </ul> 19 {{- end}} 20 </li> 21 {{- end}} 22 </ul> 23 </nav>