mirror of https://github.com/docker/docs.git
14 lines
439 B
HTML
14 lines
439 B
HTML
{{ $scratch := partialCached "utils/tocparser.html" . . }}
|
|
{{ $firstSection := (index ($scratch.GetSortedMapValues "sections") 0).title }}
|
|
<div>
|
|
<nav>
|
|
<ul class="box-content flex mt-1 gap-4 md:hidden">
|
|
{{ range site.Menus.main }}
|
|
<li {{- if eq $firstSection .Name }} class="border-b-4" {{- end }}>
|
|
<a class="block py-1 px-2" href="{{ .URL }}">{{ .Name }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</nav>
|
|
</div>
|