fix(menu): use <ol> to wrap menu items

This commit is contained in:
Jimmy Cai 2020-09-14 13:38:24 +02:00
parent 1e28a661d9
commit 841508f491
No known key found for this signature in database
GPG key ID: 3EA408E527F37B18
2 changed files with 3 additions and 2 deletions

View file

@ -122,6 +122,7 @@
/* Menu style */
.menu {
padding-left: 0;
list-style: none;
display: flex;
flex-direction: column;

View file

@ -25,7 +25,7 @@
<h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
</header>
<nav class="menu" id="main-menu">
<ol class="menu" id="main-menu">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
@ -39,5 +39,5 @@
</a>
</li>
{{ end }}
</nav>
</ol>
</aside>