2020-01-12 06:33:02 -08:00
|
|
|
<nav>
|
2022-01-06 04:58:10 -08:00
|
|
|
{{ partial "search" . }}
|
2020-01-12 06:33:02 -08:00
|
|
|
|
|
|
|
|
2022-01-06 04:58:10 -08:00
|
|
|
<section class="gdoc-nav--main">
|
2022-01-23 04:21:44 -08:00
|
|
|
<h2>{{ i18n "nav_navigation" }}</h2>
|
2022-01-06 04:58:10 -08:00
|
|
|
{{ if .Site.Params.GeekdocMenuBundle }}
|
|
|
|
{{ partial "menu-bundle" (dict "current" . "source" .Site.Data.menu.main.main) }}
|
|
|
|
{{ else }}
|
|
|
|
{{ partial "menu-filetree" . }}
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ if and (in (slice "posts" "tags") .Section) (default false .Site.Params.GeekdocTagsToMenu) }}
|
2021-09-01 01:18:00 -07:00
|
|
|
<section class="gdoc-nav--tags">
|
2022-01-23 04:21:44 -08:00
|
|
|
<h2>{{ i18n "nav_tags" }}</h2>
|
2022-01-06 04:58:10 -08:00
|
|
|
<ul class="gdoc-nav__list">
|
|
|
|
{{ $currentPage := .RelPermalink }}
|
|
|
|
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
|
|
|
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
2021-09-01 01:18:00 -07:00
|
|
|
<li>
|
2022-01-06 04:58:10 -08:00
|
|
|
<a
|
|
|
|
class="gdoc-nav__entry {{ if eq $currentPage .RelPermalink }}is-active{{ end }}"
|
|
|
|
href="{{ .RelPermalink }}"
|
|
|
|
>
|
|
|
|
{{ .Title }}
|
|
|
|
</a>
|
2021-09-01 01:18:00 -07:00
|
|
|
</li>
|
2022-01-06 04:58:10 -08:00
|
|
|
{{ end }}
|
2020-01-12 06:33:02 -08:00
|
|
|
{{ end }}
|
2022-01-06 04:58:10 -08:00
|
|
|
</ul>
|
2020-01-12 06:33:02 -08:00
|
|
|
</section>
|
2022-01-06 04:58:10 -08:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
<section class="gdoc-nav--more">
|
|
|
|
{{ if .Site.Data.menu.more.more }}
|
2022-01-23 04:21:44 -08:00
|
|
|
<h2>{{ i18n "nav_more" }}</h2>
|
2022-01-06 04:58:10 -08:00
|
|
|
{{ partial "menu-bundle" (dict "current" . "source" .Site.Data.menu.more.more) }}
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
2020-01-12 06:33:02 -08:00
|
|
|
</nav>
|