2021-02-21 03:13:21 +08:00
|
|
|
<%
|
2021-06-26 15:02:32 +08:00
|
|
|
function layoutDiv() {
|
|
|
|
var el = '';
|
|
|
|
el += '<header class="header';
|
|
|
|
if (where == 'main') {
|
|
|
|
el += ' mobile-only';
|
|
|
|
}
|
|
|
|
el += '">';
|
2021-07-04 20:21:31 +08:00
|
|
|
el += partial('logo');
|
2021-08-19 23:13:05 +08:00
|
|
|
if (where != 'main') {
|
|
|
|
if (page.layout === 'wiki' && page.wiki) {
|
|
|
|
if (page.menu_id !== 'wiki') {
|
2022-10-22 13:03:47 +08:00
|
|
|
el += partial('menu', {where: where});
|
2021-08-19 23:13:05 +08:00
|
|
|
}
|
|
|
|
} else {
|
2022-10-22 13:03:47 +08:00
|
|
|
el += partial('menu', {where: where});
|
2021-07-04 20:21:31 +08:00
|
|
|
}
|
2021-06-26 15:02:32 +08:00
|
|
|
}
|
|
|
|
el += '</header>';
|
|
|
|
return el;
|
|
|
|
}
|
2021-02-21 03:13:21 +08:00
|
|
|
%>
|
2021-06-26 15:02:32 +08:00
|
|
|
|
2021-07-04 20:21:31 +08:00
|
|
|
<%- layoutDiv() %>
|