<nav class="docs-nav">
  <h3><a href="/docs/">Documentation</a></h3>
  {{ $current := . }}
  {{ range .Site.Data.docs_nav.sections }}
    <div class="nav-section">
      <h4>{{ .title }}</h4>
      <ul>
        {{ range .pages }}
          <li{{ if eq $current.RelPermalink .url }} class="active"{{ end }}>
            <a href="{{ .url }}">{{ .title }}</a>
          </li>
        {{ end }}
      </ul>
    </div>
  {{ end }}
</nav>
