Re-enable light/dark switch; frame palette preview images
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user