This commit is contained in:
xaoxuu 2021-02-22 13:37:58 +08:00
parent 2b87beef57
commit 342ee89f14
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ function layoutMainMenu() {
el += '<nav class="menu">' el += '<nav class="menu">'
for (let id of Object.keys(theme.sidebar.menu)) { for (let id of Object.keys(theme.sidebar.menu)) {
let item = theme.sidebar.menu[id]; let item = theme.sidebar.menu[id];
if (item.url == undefined || item.url.length == 0) {
continue;
}
el += '<a class="nav-item'; el += '<a class="nav-item';
if (id == page.menu_id) { if (id == page.menu_id) {
el += ' active'; el += ' active';