mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-22 21:00:42 +00:00
Robert Kaussow
5c22ce57dc
BREAKING CHANGE: Layout file renamed ´layouts/partials/page-footer.html → layouts/partials/menu-nextprev.html`. If you use overrides, you might need to change the filenames as well.
43 lines
1.2 KiB
HTML
43 lines
1.2 KiB
HTML
<nav>
|
|
{{ partial "search" . }}
|
|
|
|
|
|
<section class="gdoc-nav--main">
|
|
<h2>{{ i18n "nav_navigation" }}</h2>
|
|
{{ 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) }}
|
|
<section class="gdoc-nav--tags">
|
|
<h2>{{ i18n "nav_tags" }}</h2>
|
|
<ul class="gdoc-nav__list">
|
|
{{ $currentPage := .RelPermalink }}
|
|
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
|
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
|
<li>
|
|
<a
|
|
class="gdoc-nav__entry {{ if eq $currentPage .RelPermalink }}is-active{{ end }}"
|
|
href="{{ .RelPermalink }}"
|
|
>
|
|
{{ .Title }}
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
{{ end }}
|
|
|
|
|
|
<section class="gdoc-nav--more">
|
|
{{ if .Site.Data.menu.more.more }}
|
|
<h2>{{ i18n "nav_more" }}</h2>
|
|
{{ partial "menu-bundle" (dict "current" . "source" .Site.Data.menu.more.more) }}
|
|
{{ end }}
|
|
</section>
|
|
</nav>
|