From eccad3da5d7b84b0f78a85b357efedef8c0127fc Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 19 Mar 2025 04:48:24 +0000
Subject: [PATCH] fix(lastmod): fallback to ctx.arg.directory instead of empty string
---
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