Skip to content

Commit 6e8252a

Browse files
jackyzha0MasssiveJuice08
authored andcommitted
fix: only one h1 on a page (closes #1269)
1 parent b3a856f commit 6e8252a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

quartz/components/Explorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default ((userOpts?: Partial<Options>) => {
9292
data-savestate={opts.useSavedState}
9393
data-tree={jsonTree}
9494
>
95-
<h1>{opts.title ?? i18n(cfg.locale).components.explorer.title}</h1>
95+
<h2>{opts.title ?? i18n(cfg.locale).components.explorer.title}</h2>
9696
<svg
9797
xmlns="http://www.w3.org/2000/svg"
9898
width="14"

quartz/components/PageTitle.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ const PageTitle: QuartzComponent = ({ fileData, cfg, displayClass }: QuartzCompo
99
const baseDir = pathToRoot(fileData.slug!)
1010
const iconPath = joinSegments(baseDir, "static/Logo.png")
1111
return (
12-
<h1 class={classNames(displayClass, "page-title")}>
12+
<h2 class={classNames(displayClass, "page-title")}>
1313
<a href={baseDir}>
1414
<img class="Logo" src={iconPath} alt={title}/>
1515
</a>
16-
</h1>
16+
</h2>
1717
)
1818
}
1919

2020
PageTitle.css = `
2121
.page-title {
22+
font-size: 1.75rem;
2223
margin: 0;
2324
}
2425
.Logo {

quartz/components/styles/explorer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ button#explorer {
1111
display: flex;
1212
align-items: center;
1313

14-
& h1 {
14+
& h2 {
1515
font-size: 1rem;
1616
display: inline-block;
1717
margin: 0;

0 commit comments

Comments
 (0)