From 5208a96a3768e92d203e3d2c6fd3a79e21be64be Mon Sep 17 00:00:00 2001
From: Jon Erling Hustadnes <jonerling.hustadnes@proton.me>
Date: Mon, 05 Jan 2026 11:34:45 +0000
Subject: [PATCH] fix(build.ts/startWatching): add option `awaitWriteFinish` with 250ms threshold (#2235)
---
quartz/components/PageTitle.tsx | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/quartz/components/PageTitle.tsx b/quartz/components/PageTitle.tsx
index c327547..53ee824 100644
--- a/quartz/components/PageTitle.tsx
+++ b/quartz/components/PageTitle.tsx
@@ -1,19 +1,23 @@
import { pathToRoot } from "../util/path"
-import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
+import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
+import { classNames } from "../util/lang"
+import { i18n } from "../i18n"
-function PageTitle({ fileData, cfg }: QuartzComponentProps) {
- const title = cfg?.pageTitle ?? "Untitled Quartz"
+const PageTitle: QuartzComponent = ({ fileData, cfg, displayClass }: QuartzComponentProps) => {
+ const title = cfg?.pageTitle ?? i18n(cfg.locale).propertyDefaults.title
const baseDir = pathToRoot(fileData.slug!)
return (
- <h1 class="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