From b06aa29ea34d74cdc25e26e796925606ae39df51 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 29 Oct 2025 18:46:55 +0200 Subject: [PATCH] chore(share): remove leftover color management logic --- packages/share-theme/src/templates/page.ejs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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") %>