<% if (locals.menubarConfig && menubarConfig?.enabled !==false && menubarConfig.position==='header' ) { %>
<%- await include('partials/menubar', { menubarConfig, relativePathToRoot, renderIcon, optionsMenu:
locals.optionsMenu, t: typeof t === 'function' ? t : null }) %>
<% } %>
<% if (headerConfig?.enabled !==false) { %>
<% } %>
<% if (config.layout?.breadcrumbs !== false && locals.breadcrumbs && breadcrumbs.length > 0) { %>
<% } else { %>
<% } %>
<% if (config.theme?.copyWidgets?.enabled !== false) { %>
<% if (config.theme?.copyWidgets?.raw !== false) { %>
<% } %>
<% if (config.theme?.copyWidgets?.context !== false) { %>
<% } %>
<% } %>
<% if (headerConfig?.enabled===false) { %>
<%= pageTitle %>
<% } %>
<%- content %>
<% if (config.pageNavigation && (prevPage || nextPage)) { %>
<% } %>
<%- await include('partials/footer', { footerConfig, config, relativePathToRoot, logo, siteTitle,
footerHtml, t: typeof t === 'function' ? t : null }) %>
<% if (locals.allLocales && allLocales && allLocales.length > 1) { %>
<% } %>
<%# Git Plugin core JS (injected directly since git is a core plugin) %>
<%- pluginBodyScriptsHtml || '' %>
<% (customJsFiles || []).forEach(jsFile=> {
if (jsFile && jsFile.trim() !== '') { %>
<% }
}); %>
<%# Cookie consent dialog (new in 0.8.7). Rendered only when config.cookie is set. %>
<% if (locals.config && config.cookie && config.cookie.enabled !== false) { %>
<%- await include('partials/cookie-consent', { config, relativePathToRoot, renderIcon, t: typeof t === 'function' ? t : null }) %>
<% } %>