diff --git a/packages/share-theme/src/templates/page.ejs b/packages/share-theme/src/templates/page.ejs index 9b8433b90..26f35f538 100644 --- a/packages/share-theme/src/templates/page.ejs +++ b/packages/share-theme/src/templates/page.ejs @@ -83,8 +83,6 @@ const logoWidth = subRoot.note.getLabelValue("shareLogoWidth") ?? 53; const logoHeight = subRoot.note.getLabelValue("shareLogoHeight") ?? 40; const mobileLogoHeight = logoHeight && logoWidth ? 32 / (logoWidth / logoHeight) : ""; const shareRootLink = subRoot.note.hasLabel("shareRootLink") ? subRoot.note.getLabelValue("shareRootLink") : `./${subRoot.note.noteId}`; -const currentTheme = note.getLabel("shareTheme") === "light" ? "light" : "dark"; -const themeClass = currentTheme === "light" ? " theme-light" : " theme-dark"; const headingRe = /()(.+?)(<\/h[1-6]>)/g; const headingMatches = [...content.matchAll(headingRe)]; content = content.replaceAll(headingRe, (...match) => { @@ -93,7 +91,7 @@ content = content.replaceAll(headingRe, (...match) => { return match[0]; }); %> - + <%- renderSnippets("body:start") %>
@@ -113,7 +111,7 @@ content = content.replaceAll(headingRe, (...match) => {
<%= t("share_theme.site-theme") %>