github.com/rabbouni145/gg@v0.47.1/docs/themes/gohugoioTheme/layouts/partials/nav-links.html (about) 1 {{ $currentPage := . }} 2 {{ $.Scratch.Add "listlinkClasses" "f6 link primary-color-dark hover-white db brand-font ma0 w-100 pv3 ph4" }} 3 4 <!-- TODO: Not getting ismenucurrent --> 5 6 <ul class="list dib ph0 ma0 scrolling-touch tc"> 7 {{ range .Site.Menus.main }} 8 <li class="tl-l dib ma0 hover-bg-black w-100{{ if .HasChildren }} dont-display-child-until-click{{end}}"> 9 10 {{ if .HasChildren }} 11 <a href="#{{ .Name | urlize }}" class="ttu {{ $.Scratch.Get "listlinkClasses" }}{{if $currentPage.IsMenuCurrent "main" . }} o-50{{end}}"> 12 {{ .Name }} 13 <!-- <img src="/images/ic_keyboard_arrow_down_white_24px.svg" alt="" class="static v-mid f6 ma0 pa0"> --> 14 </a> 15 <ul id="{{ .Name | urlize}}" class="list pa0 ma0"> 16 <li class="ma0 pl3 brand-font"> 17 <a href="{{.URL}}" class="{{ $.Scratch.Get "listlinkClasses" }}{{if $currentPage.IsMenuCurrent "main" . }} o-50{{end}}"> 18 {{ .Name }} Overview 19 </a> 20 </li> 21 {{ range .Children }} 22 <li class="ma0 pl3 brand-font{{if $currentPage.IsMenuCurrent "main" . }} o-50{{end}}"> 23 <a href="{{.URL}}" class="{{ $.Scratch.Get "listlinkClasses" }}"> 24 {{ .Name }} 25 </a> 26 </li> 27 {{ end }} 28 </ul> 29 {{ else }} 30 <a href="{{.URL}}" class="ttu {{ $.Scratch.Get "listlinkClasses" }}{{if $currentPage.IsMenuCurrent "main" . }} bg-primary-color{{end}}"> 31 {{ .Name }} 32 </a> 33 {{end}} 34 35 </li> 36 {{end}} 37 </ul>