github.com/shashank-sachan/gqlgen@v0.7.2/docs/layouts/partials/sidebar.html (about) 1 <div class="layout--logo"> 2 <a class="logo" href="http://github.com/99designs/gqlgen"> 3 {{ partial "gqlgen.svg" }} 4 <span class="logo--name">gqlgen</span> 5 </a> 6 </div> 7 8 <nav> 9 <input class="hamburger-toggle" type="checkbox" /> 10 11 <div class="hamburger"> 12 <span></span> 13 <span></span> 14 <span></span> 15 </div> 16 17 <ul class="menu"> 18 {{ $currentPage := . }} 19 {{- range .Site.Menus.main }} 20 <li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"> 21 {{ if .URL }} 22 <a class="menu-item" href="{{ .URL }}">{{ .Name }}</a> 23 {{ else }} 24 <span class="menu-item submenu-heading">{{ .Name }}</span> 25 {{ end }} 26 {{- if .HasChildren }} 27 <ul class="submenu"> 28 {{- range .Children }} 29 <li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"> 30 {{ if .URL }} 31 <a class="menu-item" href="{{ .URL }}">{{ .Name }}</a> 32 {{ else }} 33 <span class="menu-item">{{ .Name }}</span> 34 {{ end }} 35 </li> 36 {{- end }} 37 </ul> 38 {{- end }} 39 </li> 40 {{- end}} 41 </ul> 42 </nav>