jeremykidwell.info/layouts/partials/sidebar.html

10 lines
334 B
HTML
Raw Normal View History

2017-06-26 19:57:02 +00:00
<nav class="navbar">
<ul>
<li><a href="/">Jeremy Kidwell</a></li>
{{ $currentNode := . }}
{{ range .Site.Menus.main }}
<li><span> <a class="{{if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }} active{{end}}" href="{{.URL}}">{{ .Name }} </a></span>
{{ end }}
</ul>
</nav>