jeremykidwell.info/layouts/partials/sidebar.html
Jeremy Kidwell 13e2fd6e74 first commit
2017-06-26 20:57:02 +01:00

10 lines
334 B
HTML
Executable file

<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>