Skip to content

Commit

Permalink
put secondary nav in unordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
growdigital committed Aug 15, 2018
1 parent 0a02b54 commit 55bc63e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions themes/starter/layouts/partials/aside.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ <h2><abbr title="Rich Site Summary">RSS</abbr> feeds</h2>
<h2>Secondary navigation</h2>
<nav class="nav">
{{ $currentPage := . }}
{{ range .Site.Menus.secondary }}
<a class="{{ if or ($currentPage.IsMenuCurrent " secondary " .) ($currentPage.HasMenuCurrent "secondary" .) }}is-active{{ end }}" href="{{ .URL }}">{{ .Name }}</a>
<ul class="o-list-bare">
{{- range .Site.Menus.secondary -}}
<li><a class="{{ if or ($currentPage.IsMenuCurrent " secondary " .) ($currentPage.HasMenuCurrent "secondary" .) }}is-active{{ end }}" href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
</nav>
</section>
</aside>

0 comments on commit 55bc63e

Please sign in to comment.