mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-07 09:02:29 +00:00
26 lines
729 B
HTML
26 lines
729 B
HTML
{{- if not .Site.Params.settings.hideMainMenu -}}
|
|
|
|
<nav id='main-menu' class='menu main-menu' aria-label='{{ i18n "mainMenu" }}'>
|
|
<div class='container'>
|
|
{{ partial "sidebar/toggler" . }}
|
|
<ul>
|
|
{{- range .Site.Menus.main -}}
|
|
{{- $isCurrent := ( or ( $.IsMenuCurrent "main" . ) ( $.HasMenuCurrent "main" . ) ) -}}
|
|
<li class='item {{- if $isCurrent }} current {{- end -}}'>
|
|
<a {{ if $isCurrent -}} aria-current='page' {{ end -}} href='{{ .URL }}'>
|
|
{{- with .Pre -}}{{- . -}}{{- end -}}
|
|
{{- .Name -}}
|
|
{{- with .Post -}}{{- . -}}{{- end -}}
|
|
</a>
|
|
</li>
|
|
{{- end -}}
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
|
|
{{- else -}}
|
|
|
|
{{ partial "sidebar/toggler" . }}
|
|
|
|
{{- end -}}
|