diff options
author | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-14 14:38:24 +0300 |
---|---|---|
committer | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-14 14:38:24 +0300 |
commit | 841508f491a8e1010efa1645312b721d67f55a3f (patch) | |
tree | 294bf1e1f28a115f3768568a43a2088c91be73fb | |
parent | 1e28a661d9d848aee7e5bd126fa6f84a715f51c9 (diff) |
fix(menu): use <ol> to wrap menu items
-rw-r--r-- | assets/scss/partials/menu.scss | 1 | ||||
-rw-r--r-- | layouts/partials/sidebar/left.html | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/assets/scss/partials/menu.scss b/assets/scss/partials/menu.scss index 5771d22..c0d7c0a 100644 --- a/assets/scss/partials/menu.scss +++ b/assets/scss/partials/menu.scss @@ -122,6 +122,7 @@ /* Menu style */ .menu { + padding-left: 0; list-style: none; display: flex; flex-direction: column; diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index 1a0e2f5..8991153 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -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>
\ No newline at end of file |