fix menu
This commit is contained in:
parent
2b87beef57
commit
342ee89f14
|
@ -4,6 +4,9 @@ function layoutMainMenu() {
|
|||
el += '<nav class="menu">'
|
||||
for (let id of Object.keys(theme.sidebar.menu)) {
|
||||
let item = theme.sidebar.menu[id];
|
||||
if (item.url == undefined || item.url.length == 0) {
|
||||
continue;
|
||||
}
|
||||
el += '<a class="nav-item';
|
||||
if (id == page.menu_id) {
|
||||
el += ' active';
|
||||
|
|
Loading…
Reference in New Issue