Skip to content

Commit

Permalink
Fix default navbar alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
markdumay committed Jun 27, 2024
1 parent f8dcebb commit 741bff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@
"mode-switch",
"ms-1",
"ms-3",
"ms-auto",
"ms-md-3",
"mt-2",
"mt-3",
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/assets/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
{{- if and $search (not $searchModal) }}{{ partial "assets/search-input.html" }}{{ end -}}

<!-- Render top-menu items (maximum depth of 2) -->
<ul class="navbar-nav{{ if $flex }} d-flex w-100{{ end }}">
<ul class="navbar-nav {{ if $flex }}d-flex w-100{{ else }}ms-auto{{ end }}">
{{- range $menu := $menus -}}
{{ if $menu.Params.spacing }}
<li class="nav-item flex-grow-1"></li>
Expand Down

0 comments on commit 741bff8

Please sign in to comment.