From 82c53a1c80069734da273883885d764ada0c1dd2 Mon Sep 17 00:00:00 2001
From: Garklein <63201615+Garklein@users.noreply.github.com>
Date: Tue, 08 Jul 2025 02:46:52 +0000
Subject: [PATCH] fix docs for using custom components compositionally (#2044)
---
quartz/components/PageTitle.tsx | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/quartz/components/PageTitle.tsx b/quartz/components/PageTitle.tsx
index 2362f10..53ee824 100644
--- a/quartz/components/PageTitle.tsx
+++ b/quartz/components/PageTitle.tsx
@@ -7,15 +7,17 @@
const title = cfg?.pageTitle ?? i18n(cfg.locale).propertyDefaults.title
const baseDir = pathToRoot(fileData.slug!)
return (
- <h1 class={classNames(displayClass, "page-title")}>
+ <h2 class={classNames(displayClass, "page-title")}>
<a href={baseDir}>{title}</a>
- </h1>
+ </h2>
)
}
PageTitle.css = `
.page-title {
+ font-size: 1.75rem;
margin: 0;
+ font-family: var(--titleFont);
}
`
--
Gitblit v1.10.0