> <%- '' %> <% if (locals.allLocales && locals.allLocales.length > 1 && !locals.i18nStringMode) { %> <% var i18nData = { default: locals.defaultLocale || "", locales: (locals.allLocales || []).map(function(l) { return { id: l.id, label: l.label || l.id, dir: l.dir || "ltr" }; }), inPlace: locals.i18nInPlace || false }; %> <%- '' %> <% } %> <% if (frontmatter.components?.meta !==false) { %> <%- metaTagsHtml || '' %> <%= pageTitle %> <% if (frontmatter.components?.siteTitle !==false && siteTitle && pageTitle !== siteTitle && !(frontmatter && frontmatter.titleAppend === false)) { %> : <%= siteTitle %> <% } %> <% if (description && !(metaTagsHtml && metaTagsHtml.includes('name="description"'))) { %> <% } %> <% } %> <% if (frontmatter.components?.favicon !== false) { %> <%- faviconLinkHtml || '' %> <% } %> <% if (frontmatter.components?.css !== false) { %> <% if (frontmatter.components?.highlight !== false) { const isDarkDefault = defaultMode === ' dark'; %> > > <% } %> <% } %> <% if (frontmatter.components?.pluginHeadScripts !==false) { %> <%- pluginHeadScriptsHtml || '' %> <% } %> <% if (frontmatter.components?.theme !==false) { %> <%- themeCssLinkHtml || '' %> <% } %> <% if (frontmatter.components?.customCss !==false && customCssFiles && customCssFiles.length> 0) { %> <% customCssFiles.forEach(cssFile=> { %> <% }); %> <% } %> <% if (frontmatter.components?.pluginStyles !==false) { %> <%- pluginStylesHtml || '' %> <% } %> <% if (frontmatter.components?.themeMode !==false) { %> <%- themeInitScript %> <% } %> <% if (frontmatter.customHead) { %> <%- frontmatter.customHead %> <% } %> data-theme="<%= defaultMode %>"<% } %> <% if (frontmatter.bodyClass) { %> class="<%= frontmatter.bodyClass %>"<% } %> data-copy-code-enabled="<%= config.copyCode===true %>" data-spa-enabled="<%= frontmatter.components?.spa === true %>"> <% if (frontmatter.components?.menubar === true && (locals.menubarConfig && menubarConfig?.enabled !== false)) { %> <%- await include('partials/menubar', { menubarConfig, relativePathToRoot, renderIcon, optionsMenu: locals.optionsMenu }) %> <% } %> <% if (frontmatter.components?.layout===true || frontmatter.components?.layout==='full' ) { %>
<% if (frontmatter.components?.header !==false) { %> <% } %>
<%- content %>
<% if (frontmatter.components?.toc !==false && headings && headings.length> 0) { %>
<%- await include('toc', { content, headings, navigationHtml, isActivePage }) %>
<% } %>
<% 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) { %>
<%- await include('toc', { content, headings, navigationHtml, isActivePage }) %>
<% } %>
<% 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) { %> <% } %>