mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
fix(menu): use <ol> to wrap menu items
This commit is contained in:
parent
1e28a661d9
commit
841508f491
2 changed files with 3 additions and 2 deletions
|
@ -122,6 +122,7 @@
|
|||
|
||||
/* Menu style */
|
||||
.menu {
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
@ -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>
|
Loading…
Reference in a new issue