~mrls/essential

ref: bcd25ada78cfdfbac195e33bf6784bcd9cf6488f essential/layouts/partials/nav.html -rw-r--r-- 299 bytes
bcd25ada — Mauro Morales updates for mermaid 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
{{ $currentPage := . }}
<div id="nav">
  <ul class="nav navbar-nav">
    {{ range .Site.Menus.main }}
    <li>
      <a class="{{- if eq $currentPage.RelPermalink .URL -}}open{{- end -}}"
         href="{{ .URL }}">
        <span>{{ .Name }}</span>
      </a>
    </li>
    {{ end }}
  </ul>
</div>