styling of the search bar. Improved functionality. Still needs styling.
[theme-danix.xyz.git] / layouts / partials / main-menu.html
CommitLineData
748286b5 1<nav id="menu">
2 <ul class="links">
3 {{ $currentPage := . }}
4 {{ range .Site.Menus.main }}
5 {{ if .HasChildren }}
6 <li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
7 <a href="#">{{ .Pre }} <span>{{ .Name }}</span></a>
e28a215c 8 </li>
748286b5 9 <ul class="sub-menu">
10 {{ range .Children }}
11 <li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
12 <a href="{{ .URL }}">{{ .Name }}</a>
13 </li>
14 {{ end }}
15 </ul>
16 {{ else }}
17 <li>
18 <a href="{{ .URL }}">{{ .Pre }} <span>{{ .Name }}</span></a>
19 </li>
20 {{ end }}
e28a215c 21 {{ end }}
1f2ccd6e 22 <li>{{- partial "search.html" . -}}</li>
748286b5 23 </ul>
24</nav>