github.com/rabbouni145/gg@v0.47.1/docs/themes/gohugoioTheme/layouts/partials/site-nav.html (about) 1 {{ $currentPage := . }} 2 <nav class="bg-primary-color-dark pv4 w-100" role="navigation"> 3 4 <div class="center flex-ns flex-wrap items-center justify-start mw9"> 5 6 <h1 class="dim f3 lh-solid ml0-ns mr0 mr4-l mv0 pl3 pl4-ns"> 7 <a href="{{ .Site.BaseURL }}" class="link white"> 8 HUGO 9 </a> 10 </h1> 11 <ul class="list ma0 pa0 dn dib-l"> 12 {{ range .Site.Menus.global }} 13 <li class="f5 dib mr4" role="menuitem"> 14 {{/* TODO: Create an "Global" active class to show which site one is currently at */}} 15 <a href="{{ .URL }}" class="dim link{{ if $currentPage.IsMenuCurrent "global" . }} gray {{else}} light-silver{{ end }}"> 16 {{ .Name }} 17 {{/* using ".Post" from the menu system to determine if we should show an icon for external links */}} 18 {{ $post_status := printf "%s" .Post }} 19 {{ if eq $post_status "external" }} 20 {{ partial "svg/link-ext.svg" (dict "size" "10") }} 21 {{ end }} 22 </a> 23 </li> 24 {{ end }} 25 </ul> 26 27 <div class="db dib-ns pl3"> 28 {{- partial "site-search.html" . -}} 29 </div> 30 31 <span class="absolute mt1 mt2-l pr3 right-0 top-0"> 32 {{- partialCached "social-follow.html" . -}} 33 </span> 34 35 </div> 36 </nav>