From 2a4d5b530d9b0f3a49957d1a597cdaf82e8996e5 Mon Sep 17 00:00:00 2001 From: keithdperez Date: Mon, 29 Jul 2024 18:28:35 -0500 Subject: [PATCH] Quartz sync: Jul 29, 2024, 6:28 PM --- quartz.layout.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/quartz.layout.ts b/quartz.layout.ts index 5bf5b5b7..46027100 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -8,7 +8,7 @@ export const sharedPageComponents: SharedLayout = { afterBody: [], footer: Component.Footer({ links: { - "Our Website": "https://thetablechurch.life", + "Website": "https://thetablechurch.life", "Church Center": "https://thetablechurchlemont.churchcenter.com", }, }), @@ -25,9 +25,9 @@ export const defaultContentPageLayout: PageLayout = { left: [ Component.PageTitle(), Component.MobileOnly(Component.Spacer()), -// Component.Search(), + Component.Search(), Component.Darkmode(), -// Component.DesktopOnly(Component.Explorer()), + Component.DesktopOnly(Component.Explorer()), ], right: [ Component.Graph(), @@ -47,4 +47,8 @@ export const defaultListPageLayout: PageLayout = { Component.DesktopOnly(Component.Explorer()), ], right: [], + document.addEventListener("themechange", (e) => { + console.log("Theme changed to " + e.detail.theme) // either "light" or "dark" + // your logic here +}) }