Skip to content

Commit b85b0e3

Browse files
Update: re-add folderCount to folder-listings
- better differentiates page listings from regular article content - Changed from `<p>` element to `<h2>` element as folder listing entries are all h3's; better consecutive heading order. - gave the h2 the class `.foldercount-heading` and styled it like an h3 so it wouldn't detract too much from the page listings
1 parent a4dcb9d commit b85b0e3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

quartz/components/pages/FolderContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ export default ((opts?: Partial<FolderContentOptions>) => {
5252
<article>{content}</article>
5353
<div class="page-listing">
5454
{options.showFolderCount && (
55-
<p>
55+
<h2 class="foldercount-heading">
5656
{i18n(cfg.locale).pages.folderContent.itemsUnderFolder({
5757
count: allPagesInFolder.length,
5858
})}
59-
</p>
59+
</h2>
6060
)}
6161
<div>
6262
<PageList {...listProps} />

quartz/components/styles/listPage.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,10 @@ li.section-li {
4646
display: none;
4747
}
4848
}
49+
50+
// MMW custom styling for folderCount heading
51+
h2.foldercount-heading {
52+
font-size: 1.12rem;
53+
margin-top: 1.62rem;
54+
margin-bottom: 1rem;
55+
}

0 commit comments

Comments
 (0)