From 407fad384cdb473184100347a8f71bdce4643e64 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Mon, 5 Aug 2024 19:18:48 -0700 Subject: [PATCH] fix: only one h1 on a page (closes #1269) --- quartz/components/Explorer.tsx | 2 +- quartz/components/PageTitle.tsx | 5 +++-- quartz/components/styles/explorer.scss | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/quartz/components/Explorer.tsx b/quartz/components/Explorer.tsx index cffc079e..24583a1f 100644 --- a/quartz/components/Explorer.tsx +++ b/quartz/components/Explorer.tsx @@ -92,7 +92,7 @@ export default ((userOpts?: Partial) => { data-savestate={opts.useSavedState} data-tree={jsonTree} > -

{opts.title ?? i18n(cfg.locale).components.explorer.title}

+

{opts.title ?? i18n(cfg.locale).components.explorer.title}

+

{title} -

+ ) } PageTitle.css = ` .page-title { + font-size: 1.75rem; margin: 0; } ` diff --git a/quartz/components/styles/explorer.scss b/quartz/components/styles/explorer.scss index 55ea8aa8..d4875e7c 100644 --- a/quartz/components/styles/explorer.scss +++ b/quartz/components/styles/explorer.scss @@ -11,7 +11,7 @@ button#explorer { display: flex; align-items: center; - & h1 { + & h2 { font-size: 1rem; display: inline-block; margin: 0;