<% if (frontmatter.components?.header !==false) { %>
<% } %>
<%- content %>
<% if (frontmatter.components?.toc !==false && headings && headings.length> 0) { %>
<% } %>
<% if (frontmatter.components?.footer !==false) { %>
<% } %>
<% } else if (frontmatter.components?.sidebar===true) { %>
<% if (frontmatter.components?.header !==false) { %>
<% } %>
<%- content %>
<% if (frontmatter.components?.toc !==false && headings && headings.length> 0) { %>
<% } %>
<% if (frontmatter.components?.footer !==false) { %>
<% } %>
<% } else { %>
<%- content %>
<% } %>
<% if (frontmatter.components?.scripts===true) { %>
<% if (frontmatter.components?.mainScripts===true) { %>
<%- '' %>
<% } %>
<% if (frontmatter.components?.lightbox===true && frontmatter.components?.mainScripts===true) { %>
<% } %>
<% if (frontmatter.components?.customJs===true && customJsFiles && customJsFiles.length> 0) { %>
<% customJsFiles.forEach(jsFile=> { %>
<% }); %>
<% } %>
<% if (frontmatter.components?.scripts !==false) { %>
<%- pluginBodyScriptsHtml || '' %>
<% } %>
<% } %>
<% if (frontmatter.customScripts) { %>
<%- frontmatter.customScripts %>
<% } %>
<% if (locals.allLocales && locals.allLocales.length > 1 && !locals.i18nStringMode) { %>
<% } %>