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