%
function layoutTitle() {
const title = page.h1 != null ? page.h1 : page.title;
if (title && title.length > 0) {
return '
' + title + '
';
} else {
return '';
}
}
function layoutDiv() {
var el = '';
if (page.nav_tabs) {
el += partial('_partial/main/navbar/nav_tabs_blog');
}
if (page.h1 || page.title || (page.content && page.content.length > 0)) {
el += partial('_partial/main/navbar/breadcrumb');
}
el += '';
el += layoutTitle();
if (page.content && page.content.length > 0) {
el += page.content;
}
el += '';
el += partial('_partial/plugins/comments/layout');
return el;
}
%>
<%- layoutDiv() %>