mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-02 01:18:30 +02:00
Increase maximum side navigation depth by one level (#2454)
* Increase maximum side navigation depth by one * Break up Text Search guide into multiple pages * Update links to Text Search guide * Broken link * One more broken link * One more broken link * Shorten title
This commit is contained in:
@@ -107,6 +107,17 @@
|
||||
{{ $isActive = true }}
|
||||
{{ end }}
|
||||
|
||||
{{ range .Sections }}
|
||||
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
|
||||
{{ $isActive = true }}
|
||||
{{ end }}
|
||||
{{ range .RegularPages }}
|
||||
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
|
||||
{{ $isActive = true }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $sectionLink := .Permalink }}
|
||||
|
||||
{{ if .Params.is_empty }}
|
||||
@@ -144,6 +155,34 @@
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ range .Sections }}
|
||||
{{ if not .Params.hideInSidebar }}
|
||||
{{ $subIsActive := false }}
|
||||
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
|
||||
{{ $subIsActive = true }}
|
||||
{{ end }}
|
||||
{{ range .RegularPages }}
|
||||
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
|
||||
{{ $subIsActive = true }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<li class="docs-menu__links-submenu-item docs-menu__links-submenu-item--section">
|
||||
<details {{ if $subIsActive }}open{{ end }}>
|
||||
<summary{{ if eq .File.UniqueID $currentNode.File.UniqueID }} class="active"{{ end }}><a href="{{ .Permalink }}">{{ .Title }}</a></summary>
|
||||
<ul class="docs-menu__links-sub-submenu">
|
||||
{{ range .RegularPages }}
|
||||
{{ if not .Params.hideInSidebar }}
|
||||
<li class="docs-menu__links-sub-submenu-item{{ if eq .File.UniqueID $currentNode.File.UniqueID }} active{{ end }}">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</details>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</details>
|
||||
|
||||
Reference in New Issue
Block a user