Re-enable light/dark switch; frame palette preview images

This commit is contained in:
trilium-share-gruvbox
2026-09-08 11:58:37 +02:00
parent f72463a2f5
commit 3a100364aa
6 changed files with 27 additions and 3 deletions
+2 -3
View File
@@ -69,11 +69,10 @@
const openGraphDomain = subRoot.note.getLabelValue("shareOpenGraphDomain");
%>
<title><%= pageTitle %></title>
<style>#site-header .theme-selection{display:none}</style>
<% if (pageUrl) { %><link rel="canonical" href="<%= pageUrl %>"><% } %>
<script>
// Theme is fixed to dark light/dark switching is disabled.
const theme = "dark";
// Site theme toggle (light/dark); default is dark.
const theme = localStorage.getItem("theme") || "dark";
document.documentElement.classList.add(`theme-${theme}`);
window.glob = {