mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
25
themes/minimo/layouts/partials/nav/menus/main.html
Normal file
25
themes/minimo/layouts/partials/nav/menus/main.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{{- 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 -}}
|
Reference in New Issue
Block a user