{{ $page := . }}

<ol class="docnav-list">

    <li class="{{ if eq .Site.Home.File.UniqueID $page.File.UniqueID }}active {{ end }}">
        <a href="{{ .Site.Home.Permalink | relURL }}"> {{ .Site.Home.Params.nav_title }}</a>
    </li>

    {{ $docs := sort (where .Site.Pages "Section" "docs") ".Params.weight" }}
    {{ range where $docs ".Params.nav_section" "Root" }}
    <li class="{{ if eq .File.UniqueID $page.File.UniqueID }}active {{ end }}">
        <a href="{{ .Permalink | relURL }}"> {{ .Params.nav