28 lines
565 B
Plaintext
28 lines
565 B
Plaintext
<%
|
|
function layoutDiv() {
|
|
var el = '';
|
|
el += '<nav class="menu dis-select';
|
|
if (where == 'main') {
|
|
el += ' mobile-hidden';
|
|
}
|
|
el += '">';
|
|
for (let id of Object.keys(theme.sidebar.menu)) {
|
|
let item = theme.sidebar.menu[id];
|
|
if (item == undefined || item.length == 0) {
|
|
continue;
|
|
}
|
|
el += '<a class="nav-item';
|
|
if (id == page.menu_id) {
|
|
el += ' active';
|
|
}
|
|
el += '" href="' + url_for(md_link(item)) + '">';
|
|
el += __(md_text(item));
|
|
el += '</a>';
|
|
}
|
|
el += '</nav>';
|
|
return el;
|
|
}
|
|
%>
|
|
|
|
<%- layoutDiv() %>
|