github.com/thanos-io/thanos@v0.32.5/website/layouts/partials/_default/sidemenu.html (about) 1 {{ $currentPage := . }} 2 {{ $currentPageUrl := .RelPermalink }} 3 4 <button class="btn btn-block btn-outline-secondary mb-3 d-block d-lg-none" type="button" data-toggle="collapse" data-target=".docs-menu"> 5 Toggle Menu 6 </button> 7 8 {{ range .Site.Sections }} 9 {{ $versionDocsPage := . }} 10 {{ $versionDocsUrl := .RelPermalink}} 11 <nav class="docs-menu collapse d-lg-block"> 12 {{ if in $currentPageUrl $versionDocsUrl }} 13 {{ range (.RegularPagesRecursive.GroupByParam "menu").Reverse }} 14 <div class="sidemenu-docs"> 15 <input type="checkbox" id="menuinput-{{ .Key }}" class="menuinput" {{if eq .Key "thanos"}} checked {{end}}/> 16 <label for="menuinput-{{ .Key }}" class="menulabel-docs"> 17 <h5 >{{ replace .Key "-" "/" }}</h5> 18 <img class="caret-expand" src="/expand.svg" alt="expand" /> 19 </label> 20 {{ range .Pages }} 21 <div class="list-group list-group-flush"> 22 <a class="list-group-item list-group-item-action list-group-item-docs py-1" href="{{ .Permalink }}">{{ .Title }}</a> 23 </div> 24 {{ end }} 25 </div> 26 {{ end }} 27 {{ end }} 28 </nav> 29 {{ end }}