%
if (page.menu_id === undefined) {
page.menu_id = 'wiki';
}
if (page.layout === undefined) {
page.layout = 'index';
}
if (page.title === undefined) {
if (page.group) {
page.title = page.group;
} else {
page.title = __('btn.wiki');
}
}
function layoutTitle() {
const title = page.h1 || page.title;
if (title && title.length > 0) {
return '
' + title + '
';
} else {
return '';
}
}
%>
<% if (page.layout === 'index') { %>
<%- partial('index') %>
<% } else { %>
<%
if (page.header === undefined) {
page.header = false;
}
%>
<%- partial('_partial/main/navbar/breadcrumb') %>
<%- layoutTitle() %>
<%- page.content %>
<%- partial('_partial/main/article/article_footer') %>
<%- partial('_partial/main/article/read_next') %>
<%- partial('_partial/plugins/comments/layout') %>
<% } %>