From 841508f491a8e1010efa1645312b721d67f55a3f Mon Sep 17 00:00:00 2001 From: Jimmy Cai <jimmehcai@gmail.com> Date: Mon, 14 Sep 2020 13:38:24 +0200 Subject: [PATCH] fix(menu): use <ol> to wrap menu items --- assets/scss/partials/menu.scss | 1 + 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