From 5a5ef670fee5f5f65981801a7ec9c2e563fe99ad Mon Sep 17 00:00:00 2001
From: Francisco Gama T. R. <francisco@ironik.org>
Date: Tue, 03 Dec 2024 06:56:59 +0000
Subject: [PATCH] fix(darkmode): check for null (#1531)
---
quartz.layout.ts | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/quartz.layout.ts b/quartz.layout.ts
index 4e8a85f..4a78256 100644
--- a/quartz.layout.ts
+++ b/quartz.layout.ts
@@ -5,6 +5,7 @@
export const sharedPageComponents: SharedLayout = {
head: Component.Head(),
header: [],
+ afterBody: [],
footer: Component.Footer({
links: {
GitHub: "https://github.com/jackyzha0/quartz",
@@ -37,12 +38,13 @@
// components for pages that display lists of pages (e.g. tags or folders)
export const defaultListPageLayout: PageLayout = {
- beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle()],
+ beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()],
left: [
Component.PageTitle(),
Component.MobileOnly(Component.Spacer()),
Component.Search(),
Component.Darkmode(),
+ Component.DesktopOnly(Component.Explorer()),
],
right: [],
}
--
Gitblit v1.10.0