github.com/square/finch@v0.0.0-20240412205204-6530c03e2b96/docs/themes/hugo-geekdoc/layouts/partials/menu.html (about) 1 <nav> 2 {{ partial "search" . }} 3 4 5 <section class="gdoc-nav--main"> 6 <h2>{{ i18n "nav_navigation" }}</h2> 7 {{ if .Site.Params.GeekdocMenuBundle }} 8 {{ partial "menu-bundle" (dict "current" . "source" .Site.Data.menu.main.main) }} 9 {{ else }} 10 {{ partial "menu-filetree" . }} 11 {{ end }} 12 </section> 13 14 {{ if and (in (slice "posts" "tags") .Section) (default false .Site.Params.GeekdocTagsToMenu) }} 15 <section class="gdoc-nav--tags"> 16 <h2>{{ i18n "nav_tags" }}</h2> 17 <ul class="gdoc-nav__list"> 18 {{ $currentPage := .RelPermalink }} 19 {{ range $name, $taxonomy := .Site.Taxonomies.tags }} 20 {{ with $.Site.GetPage (printf "/tags/%s" $name) }} 21 <li> 22 <a 23 class="gdoc-nav__entry{{- if eq $currentPage .RelPermalink }} 24 {{- printf " is-active" }} 25 {{- end }}" 26 href="{{ .RelPermalink }}" 27 > 28 {{ partial "utils/title" . }} 29 </a> 30 </li> 31 {{ end }} 32 {{ end }} 33 </ul> 34 </section> 35 {{ end }} 36 37 38 <section class="gdoc-nav--more"> 39 {{ if .Site.Data.menu.more.more }} 40 <h2>{{ i18n "nav_more" }}</h2> 41 {{ partial "menu-bundle" (dict "current" . "source" .Site.Data.menu.more.more) }} 42 {{ end }} 43 </section> 44 </nav>