2024-01-17 14:07:30 +08:00
|
|
|
<%
|
|
|
|
var page_type = 'index'
|
|
|
|
if (['post', 'page', 'wiki', 'topic', null].includes(page.layout)) {
|
|
|
|
if (!page.nav_tabs) {
|
|
|
|
page_type = 'content'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var html = `<!DOCTYPE html>`
|
|
|
|
html += `<html lang="${page.lang}">`
|
|
|
|
html += partial('_partial/head')
|
|
|
|
html += `<body>`
|
|
|
|
html += partial('_partial/cover/index')
|
|
|
|
html += `<div class="l_body ${page_type}" id="start" layout="page.layout">`
|
|
|
|
html += `<aside class="l_left">`
|
|
|
|
html += `<img no-lazy class="sidebar-bg" src="${theme.default.sidebar}">`
|
2024-01-17 22:57:52 +08:00
|
|
|
html += `<div class="sidebar-container">`
|
2024-01-17 14:07:30 +08:00
|
|
|
html += partial('_partial/sidebar/index')
|
|
|
|
html += `</div>`
|
|
|
|
html += `</aside>`
|
|
|
|
html += `<div class="l_main" id="main">`
|
|
|
|
html += partial('_partial/sidebar/logo', {where: 'main'})
|
|
|
|
html += body
|
|
|
|
html += partial('_partial/main/footer')
|
|
|
|
html += partial('_partial/menubtn')
|
|
|
|
html += `<div class="main-mask" onclick="sidebar.toggle()"></div>`
|
|
|
|
html += `</div>`
|
|
|
|
html += `</div>`
|
|
|
|
html += `<div class="scripts">`
|
|
|
|
html += partial('_partial/scripts/index')
|
|
|
|
html += `</div>`
|
|
|
|
html += `</body>`
|
|
|
|
html += `</html>`
|
|
|
|
%>
|
|
|
|
<%- html %>
|